summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eina/eina_thread_queue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eina/eina_thread_queue.c b/src/lib/eina/eina_thread_queue.c
index d5bee95c44..c76a5cbfa1 100644
--- a/src/lib/eina/eina_thread_queue.c
+++ b/src/lib/eina/eina_thread_queue.c
@@ -137,14 +137,14 @@ _eina_thread_queue_msg_block_new(int size)
137static void 137static void
138_eina_thread_queue_msg_block_real_free(Eina_Thread_Queue_Msg_Block *blk) 138_eina_thread_queue_msg_block_real_free(Eina_Thread_Queue_Msg_Block *blk)
139{ 139{
140 eina_lock_take(&(blk->lock_non_0_ref));
141 eina_lock_release(&(blk->lock_non_0_ref));
142 eina_lock_free(&(blk->lock_non_0_ref));
143#ifndef ATOMIC 140#ifndef ATOMIC
144 eina_lock_take(&(blk->lock_ref)); 141 eina_lock_take(&(blk->lock_ref));
145 eina_lock_release(&(blk->lock_ref)); 142 eina_lock_release(&(blk->lock_ref));
146 eina_spinlock_free(&(blk->lock_ref)); 143 eina_spinlock_free(&(blk->lock_ref));
147#endif 144#endif
145 eina_lock_take(&(blk->lock_non_0_ref));
146 eina_lock_release(&(blk->lock_non_0_ref));
147 eina_lock_free(&(blk->lock_non_0_ref));
148 free(blk); 148 free(blk);
149} 149}
150 150