void myqtt_async_queue_lock ( MyQttAsyncQueue queue)

Allows to lock the queue, making the caller the only thread owning the queue.

This function should be used in conjuntion with myqtt_async_queue_unlocked_push. Call to myqtt_async_queue_push will lock the caller forever until a call to myqtt_async_queue_unlock is done.

Parameters
queueThe queue to lock.

NOTE: To produce portable code, the thread calling to this function must also call to myqtt_async_queue_unlock. It is not supported by Microsoft Windows platforms to do a call to myqtt_async_queue_unlock from a different thread that issue the call to myqtt_async_queue_lock.

References myqtt_mutex_lock().