axlPointer valvula_async_queue_pop ( ValvulaAsyncQueue queue)

Pop the first data available in the queue, locking the calling if no data is available.

The function is ensured to return with a reference to some data.

Parameters
queueThe queue where data will be required.
Returns
A reference to the next data available.

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

Referenced by valvula_hash_lock_until_changed().