forked from enlightenment/efl
eina_threadqueue - fix const ptr warning on spinlocks if atomic disabled
atomics SHOULDNT be disabled anyway, but if they are... fix this warning. (no real bug)
This commit is contained in:
parent
013c0702f4
commit
6b6823e5af
|
@ -482,9 +482,9 @@ eina_thread_queue_pending_get(const Eina_Thread_Queue *thq)
|
|||
#ifdef ATOMIC
|
||||
__atomic_load(&(thq->pending), &pending, __ATOMIC_RELAXED);
|
||||
#else
|
||||
eina_spinlock_take(&(thq->lock_pending));
|
||||
eina_spinlock_take((Eina_Spinlock *)&(thq->lock_pending));
|
||||
pending = thq->pending;
|
||||
eina_spinlock_release(&(thq->lock_pending));
|
||||
eina_spinlock_release((Eina_Spinlock *)&(thq->lock_pending));
|
||||
#endif
|
||||
return pending;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue