axlPointer vortex_async_queue_pop ( VortexAsyncQueue 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 VORTEX_COND_WAIT, vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_channel_free_wait_reply(), vortex_channel_wait_reply(), vortex_hash_lock_until_changed(), vortex_listener_shutdown(), vortex_listener_wait(), vortex_pull_cleanup(), vortex_pull_next_event(), vortex_sasl_start_auth_sync(), and vortex_xml_rpc_boot_channel_sync().