unsigned int vortex_queue_get_length ( VortexQueue queue)

Returns how many items the given queue have.

Parameters
queuethe queue to check.
Returns
Returns how many items the given queue have or -1 if it fails.

References vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_queue_free().