axl_bool myqtt_async_queue_priority_push ( MyQttAsyncQueue queue,
axlPointer  data 
)

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

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

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

References myqtt_cond_signal(), myqtt_mutex_lock(), and myqtt_mutex_unlock().