Revert "eina threadqueue - for paranoia lock+ulock+free in order locks taken"

This reverts commit d19cd4e63c.

This causes a SIGBUS error on OpenBSD when closing any application. As this
was safety patch only I will revert it for the 1.18 release and we can work
out what breaks OpenBSD here for 1.19

Fixes T4332
This commit is contained in:
Stefan Schmidt 2016-08-11 14:26:16 +02:00
parent 7cf75b269e
commit d126107782
1 changed files with 3 additions and 3 deletions

View File

@ -137,14 +137,14 @@ _eina_thread_queue_msg_block_new(int size)
static void
_eina_thread_queue_msg_block_real_free(Eina_Thread_Queue_Msg_Block *blk)
{
eina_lock_take(&(blk->lock_non_0_ref));
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_free(&(blk->lock_ref));
#endif
eina_lock_take(&(blk->lock_non_0_ref));
eina_lock_release(&(blk->lock_non_0_ref));
eina_lock_free(&(blk->lock_non_0_ref));
free(blk);
}