int valvula_async_queue_items ( ValvulaAsyncQueue queue)

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

queueA reference to the queue that will be checked for its pending data.
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().