axlPointer myqtt_async_queue_pop ( MyQttAsyncQueue 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.

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

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

Referenced by myqtt_conn_get_next(), myqtt_hash_lock_until_changed(), myqtt_listener_shutdown(), myqtt_listener_wait(), and myqttd_loop_unwatch_descriptor().