ARGOBOTS
dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
|
Go to the documentation of this file.
12 #define POOL_CONFIG_HTABLE_SIZE 8
271 int key,
void *p_val)
339 switch (p_elem->
type) {
349 *((
void **)ptr) = p_elem->
val.
v_ptr;
union pool_config_element::@1 val
ABTU_ret_err int ABTU_hashtable_create(size_t num_entries, size_t data_size, ABTU_hashtable **pp_hashtable)
ABT_pool_config_type
A struct that sets and gets a pool configuration.
static void pool_config_create_element_int(pool_config_element *p_elem, int val)
#define ABTI_CHECK_ERROR(abt_errno)
void ABTU_hashtable_get(const ABTU_hashtable *p_hashtable, int key, void *data, int *found)
int ABT_pool_config_get(ABT_pool_config config, int key, ABT_pool_config_type *type, void *val)
Retrieve a value from a pool configuration.
#define POOL_CONFIG_HTABLE_SIZE
int ABT_pool_config_create(ABT_pool_config *config)
Create a new pool configuration.
void ABTU_hashtable_delete(ABTU_hashtable *p_hashtable, int key, int *deleted)
static ABT_pool_config ABTI_pool_config_get_handle(ABTI_pool_config *p_config)
#define ABT_POOL_CONFIG_NULL
#define ABTI_HANDLE_ERROR(n)
struct ABT_pool_config_opaque * ABT_pool_config
Pool configuration handle type.
static void pool_config_create_element_double(pool_config_element *p_elem, double val)
const ABT_pool_config_var ABT_pool_config_automatic
Predefined ABT_pool_config_var to configure whether the pool is freed automatically or not.
#define ABTI_ASSERT(cond)
ABT_bool ABTI_initialized(void)
static ABTU_ret_err int ABTU_calloc(size_t num, size_t size, void **p_ptr)
#define ABT_SUCCESS
Error code: the routine returns successfully.
int ABT_pool_config_set(ABT_pool_config config, int key, ABT_pool_config_type type, const void *val)
Register a value to a pool configuration.
int ABT_pool_config_free(ABT_pool_config *config)
Free a pool configuration.
static void pool_config_create_element_ptr(pool_config_element *p_elem, void *ptr)
static ABTU_ret_err int pool_config_create_element_typed(pool_config_element *p_elem, ABT_pool_config_type type, const void *p_val)
ABT_pool_config_type type
#define ABTI_UB_ASSERT(cond)
#define ABT_ERR_INV_ARG
Error code: invalid user argument.
static void ABTU_free(void *ptr)
void ABTU_hashtable_free(ABTU_hashtable *p_hashtable)
static ABTI_pool_config * ABTI_pool_config_get_ptr(ABT_pool_config config)
ABTU_ret_err int ABTU_hashtable_set(ABTU_hashtable *p_hashtable, int key, const void *data, int *overwritten)
ABTU_ret_err int ABTI_pool_config_read(const ABTI_pool_config *p_config, int key, void *p_val)
A struct that sets and gets a pool configuration.
#define ABTI_CHECK_NULL_POOL_CONFIG_PTR(p)
static void pool_config_read_element(const pool_config_element *p_elem, void *ptr)