int vortex_async_queue_items ( VortexAsyncQueue 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 vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_channel_free_wait_reply(), vortex_channel_get_reply(), vortex_pull_cleanup(), vortex_pull_pending_events(), vortex_pull_pending_events_num(), and vortex_thread_pool_stats().