Multi-ApplicationOnlineProfiling
2.1
|
Initialization and release functions. More...
Functions | |
void | Hash_Table_init (struct Hash_Table *ht, size_t sizeof_payload, uint64_t table_size, uint8_t coll_avoid) |
Hash_Table initialization. More... | |
void | Hash_Table_release (struct Hash_Table *ht, void(*free_f)(void *)) |
Hash_Table release. More... | |
Initialization and release functions.
void Hash_Table_init | ( | struct Hash_Table * | ht, |
size_t | sizeof_payload, | ||
uint64_t | table_size, | ||
uint8_t | coll_avoid | ||
) |
Hash_Table initialization.
ht | the hashtable to initialize |
sizeof_payload | the size of stored elements |
table_size | the size of the table |
coll_avoid | The size of the cluster static array |
Definition at line 40 of file Hash_Table.c.
void Hash_Table_release | ( | struct Hash_Table * | ht, |
void(*)(void *) | free_f | ||
) |
Hash_Table release.
ht | the hashtable to release |
free_f | release function for internal (must free what init_f passed to Hash_Table_init() allocates) |
Definition at line 67 of file Hash_Table.c.