From: SeokYeon Hwang Date: Mon, 14 Oct 2013 07:43:46 +0000 (+0900) Subject: brillcodec: improved performance. X-Git-Tag: TizenStudio_2.0_p2.3~535^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9f2088c3e3dba1f1a15ac12d61234f80c5376e4;p=sdk%2Femulator%2Fqemu.git brillcodec: improved performance. Reduced synchronizing areas. Change-Id: I82e8bd50f2a9a75c6442708d1df3e4577cd5ee91 Signed-off-by: SeokYeon Hwang --- diff --git a/tizen/src/hw/maru_brill_codec.c b/tizen/src/hw/maru_brill_codec.c index b65db1d..7c2e9a6 100644 --- a/tizen/src/hw/maru_brill_codec.c +++ b/tizen/src/hw/maru_brill_codec.c @@ -232,12 +232,13 @@ static void *maru_brill_codec_threads(void *opaque) TRACE("enter: %s\n", __func__); - qemu_mutex_lock(&s->context_mutex); while (s->is_thread_running) { int ctx_id, f_id, api_id; CodecParamStg *elem = NULL; + qemu_mutex_lock(&s->context_mutex); qemu_cond_wait(&s->threadpool.cond, &s->context_mutex); + qemu_mutex_unlock(&s->context_mutex); qemu_mutex_lock(&s->ioparam_queue_mutex); elem = QTAILQ_FIRST(&ioparam_queue); @@ -280,7 +281,6 @@ static void *maru_brill_codec_threads(void *opaque) // qemu_mutex_unlock(&s->threadpool.mutex); } } - qemu_mutex_unlock(&s->context_mutex); maru_brill_codec_thread_exit(s);