forked from enlightenment/efl
eina_threadqueue: fix spinlock destruction by using spinlock api
Summary: this would deadlock in some cases @fix Depends on D6297 Reviewers: ManMower, devilhorns Reviewed By: ManMower Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6298
This commit is contained in:
parent
44bafb0741
commit
df2f614431
|
@ -141,8 +141,8 @@ _eina_thread_queue_msg_block_real_free(Eina_Thread_Queue_Msg_Block *blk)
|
|||
eina_lock_release(&(blk->lock_non_0_ref));
|
||||
eina_lock_free(&(blk->lock_non_0_ref));
|
||||
#ifndef ATOMIC
|
||||
eina_lock_take(&(blk->lock_ref));
|
||||
eina_lock_release(&(blk->lock_ref));
|
||||
eina_spinlock_take(&(blk->lock_ref));
|
||||
eina_spinlock_release(&(blk->lock_ref));
|
||||
eina_spinlock_free(&(blk->lock_ref));
|
||||
#endif
|
||||
free(blk);
|
||||
|
|
Loading…
Reference in New Issue