axl_bool valvula_async_queue_priority_push ( ValvulaAsyncQueue queue,
axlPointer  data 

Allows to push data into the queue but moving the reference provided into the queue head (causing next call to valvula_async_queue_pop to receive this reference).

This function performs the same as valvula_async_queue_push but skiping all items already pushed.

queueThe queue where data will be pushed.
dataA reference to the data to be pushed. It is not allowed to push null references.
axl_true In the case the item was pushed into the queue, otherwise axl_false is returned.

References valvula_cond_signal(), valvula_mutex_lock(), and valvula_mutex_unlock().