int valvula_async_queue_length ( ValvulaAsyncQueue queue)

Allows to get current queue status.

Parameters
queueThe queue to oper.
Returns
The number of items stored minus the number of thread waiting. The function returns 0 if the reference received is null.

References valvula_mutex_lock(), and valvula_mutex_unlock().