ARGOBOTS  36a41b57298ad4e16b5ada8c95c81f00dfed4d3c
Functions
hashtable.c File Reference
#include "abti.h"
Include dependency graph for hashtable.c:

Go to the source code of this file.

Functions

static ABTU_hashtable_elementget_element (const ABTU_hashtable *p_hashtable, size_t entry_index)
 
ABTU_ret_err int ABTU_hashtable_create (size_t num_entries, size_t data_size, ABTU_hashtable **pp_hashtable)
 
void ABTU_hashtable_free (ABTU_hashtable *p_hashtable)
 
void ABTU_hashtable_get (const ABTU_hashtable *p_hashtable, int key, void *data, int *found)
 
ABTU_ret_err int ABTU_hashtable_set (ABTU_hashtable *p_hashtable, int key, const void *data, int *overwritten)
 
void ABTU_hashtable_delete (ABTU_hashtable *p_hashtable, int key, int *deleted)
 

Function Documentation

◆ ABTU_hashtable_create()

ABTU_ret_err int ABTU_hashtable_create ( size_t  num_entries,
size_t  data_size,
ABTU_hashtable **  pp_hashtable 
)

Definition at line 21 of file hashtable.c.

Referenced by ABT_pool_config_create(), and ABT_sched_config_create().

◆ ABTU_hashtable_delete()

void ABTU_hashtable_delete ( ABTU_hashtable p_hashtable,
int  key,
int *  deleted 
)

Definition at line 144 of file hashtable.c.

Referenced by ABT_pool_config_set(), and ABT_sched_config_set().

◆ ABTU_hashtable_free()

void ABTU_hashtable_free ( ABTU_hashtable p_hashtable)

◆ ABTU_hashtable_get()

void ABTU_hashtable_get ( const ABTU_hashtable p_hashtable,
int  key,
void *  data,
int *  found 
)

◆ ABTU_hashtable_set()

ABTU_ret_err int ABTU_hashtable_set ( ABTU_hashtable p_hashtable,
int  key,
const void *  data,
int *  overwritten 
)

Definition at line 91 of file hashtable.c.

Referenced by ABT_pool_config_set(), ABT_sched_config_create(), and ABT_sched_config_set().

◆ get_element()

static ABTU_hashtable_element* get_element ( const ABTU_hashtable p_hashtable,
size_t  entry_index 
)
inlinestatic