Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Init/Release

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...
 

Detailed Description

Initialization and release functions.

Function Documentation

void Hash_Table_init ( struct Hash_Table ht,
size_t  sizeof_payload,
uint64_t  table_size,
uint8_t  coll_avoid 
)

Hash_Table initialization.

Parameters
htthe hashtable to initialize
sizeof_payloadthe size of stored elements
table_sizethe size of the table
coll_avoidThe size of the cluster static array

Definition at line 40 of file Hash_Table.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void Hash_Table_release ( struct Hash_Table ht,
void(*)(void *)  free_f 
)

Hash_Table release.

Parameters
htthe hashtable to release
free_frelease function for internal (must free what init_f passed to Hash_Table_init() allocates)

Definition at line 67 of file Hash_Table.c.

Here is the call graph for this function:

Here is the caller graph for this function: