void vortex_async_queue_lock ( VortexAsyncQueue queue)

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

This function should be used in conjuntion with vortex_async_queue_unlocked_push. Call to vortex_async_queue_push will lock the caller forever until a call to vortex_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 vortex_async_queue_unlock. It is not supported by Microsoft Windows platforms to do a call to vortex_async_queue_unlock from a different thread that issue the call to vortex_async_queue_lock.

References vortex_mutex_lock().