From a9f2088c3e3dba1f1a15ac12d61234f80c5376e4 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Mon, 14 Oct 2013 16:43:46 +0900 Subject: [PATCH] brillcodec: improved performance. Reduced synchronizing areas. Change-Id: I82e8bd50f2a9a75c6442708d1df3e4577cd5ee91 Signed-off-by: SeokYeon Hwang --- tizen/src/hw/maru_brill_codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.7.4