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);
// qemu_mutex_unlock(&s->threadpool.mutex);
}
}
- qemu_mutex_unlock(&s->context_mutex);
maru_brill_codec_thread_exit(s);