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:
Mike Blumenkrantz 2018-06-19 13:30:26 -04:00
parent 44bafb0741
commit df2f614431
1 changed files with 2 additions and 2 deletions

View File

@ -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);