axlPointer vortex_hash_lookup_and_clear ( VortexHash hash_table,
axlPointer  key 

Allows to get the data pointed by the provided key and removing it from the table in one step.

Return the value, if found, associated with the key.

hash_tablethe hash table
keythe key value
the value found or NULL if fails

References vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_channel_get_piggyback().