fix efl deadlock with thread queues

@fix
This commit is contained in:
Carsten Haitzler 2014-08-24 22:18:17 +09:00
parent 230758a858
commit 479c0f37a4
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ _eina_thread_queue_msg_fetch(Eina_Thread_Queue *thq, Eina_Thread_Queue_Msg_Block
if (thq->last == blk) thq->last = blk->next;
thq->data = blk->next;
blk->next = NULL;
eina_lock_release(&(blk->lock_non_0_ref));
if (ref > 0) eina_lock_release(&(blk->lock_non_0_ref));
RWLOCK_UNLOCK(&(thq->lock_write));
}
blk = thq->read;