axlPointer vortex_async_queue_lookup ( VortexAsyncQueue queue,
axlLookupFunc  lookup_func,
axlPointer  user_data 

Allows to iterate over queue elements applying a lookup function to select one.

queueThe queue where the lookup operation will take place.
lookup_funcThe looking up function to call over each item.
user_dataUser defined data to be passed to the lookup function along with the queue item.
The first queue element that was found (lookup function returns axl_true for the queue item) or NULL if no items are in the queue or no item was selected by the lookup_func. Note the pointer returned is still owned by the queue.

References vortex_mutex_lock(), and vortex_mutex_unlock().