axlPointer myqtt_hash_lookup_and_clear ( MyQttHash 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 myqtt_mutex_lock(), and myqtt_mutex_unlock().