int valvula_async_queue_items ( ValvulaAsyncQueue queue)

Allows to get current items installed on the queue, pending to be readed.

Parameters
queueA reference to the queue that will be checked for its pending data.
Returns
0 or the number of data pending. -1 is returned if a null reference is received.

References valvula_mutex_lock(), and valvula_mutex_unlock().

Referenced by valvula_thread_pool_stats().