ValvulaHash* valvula_hash_new_full ( axlHashFunc  hash_func,
axlEqualFunc  key_equal_func,
axlDestroyFunc  key_destroy_func,
axlDestroyFunc  value_destroy_func 
)

Creates a new ValvulaHash setting all functions.

Creates a new Valvula Hash Table. All valvula library is programed making heavy use of hash tables so things can go pretty much faster.

But this makes race condition to appear anywhere so, this type allow valvula library to create critical section to all operation that are applied to a hash table.

Parameters
hash_func
key_equal_func
key_destroy_func
value_destroy_func
Returns
a new ValvulaHash table or NULL if fail

References valvula_mutex_create().

Referenced by valvula_hash_new().