axlPointer valvula_hash_lookup_and_clear ( ValvulaHash 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.

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

References valvula_mutex_lock(), and valvula_mutex_unlock().