int myqtt_async_queue_items ( MyQttAsyncQueue 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 myqtt_mutex_lock(), and myqtt_mutex_unlock().

Referenced by myqtt_thread_pool_stats().