| ARGOBOTS
    dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
    | 
 
 
 
Go to the documentation of this file.
   12 #define POOL_CONFIG_HTABLE_SIZE 8 
   81     ABTI_UB_ASSERT(ABTI_initialized());
 
   84     ABTI_pool_config *p_config;
 
   86     abt_errno = 
ABTU_calloc(1, 
sizeof(ABTI_pool_config), (
void **)&p_config);
 
   87     ABTI_CHECK_ERROR(abt_errno);
 
   93         ABTI_HANDLE_ERROR(abt_errno);
 
   96     *config = ABTI_pool_config_get_handle(p_config);
 
  125     ABTI_UB_ASSERT(ABTI_initialized());
 
  126     ABTI_UB_ASSERT(config);
 
  128     ABTI_pool_config *p_config = ABTI_pool_config_get_ptr(*config);
 
  129     ABTI_CHECK_NULL_POOL_CONFIG_PTR(p_config);
 
  186     ABTI_UB_ASSERT(ABTI_initialized());
 
  188     ABTI_pool_config *p_config = ABTI_pool_config_get_ptr(config);
 
  189     ABTI_CHECK_NULL_POOL_CONFIG_PTR(p_config);
 
  195         ABTI_CHECK_ERROR(abt_errno);
 
  197         ABTI_CHECK_ERROR(abt_errno);
 
  246     ABTI_UB_ASSERT(ABTI_initialized());
 
  248     ABTI_pool_config *p_config = ABTI_pool_config_get_ptr(config);
 
  249     ABTI_CHECK_NULL_POOL_CONFIG_PTR(p_config);
 
  270 ABTU_ret_err int ABTI_pool_config_read(
const ABTI_pool_config *p_config,
 
  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)
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)
#define ABT_POOL_CONFIG_NULL
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.
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 ABT_ERR_INV_ARG
Error code: invalid user argument.
static void ABTU_free(void *ptr)
void ABTU_hashtable_free(ABTU_hashtable *p_hashtable)
ABTU_ret_err int ABTU_hashtable_set(ABTU_hashtable *p_hashtable, int key, const void *data, int *overwritten)
A struct that sets and gets a pool configuration.
static void pool_config_read_element(const pool_config_element *p_elem, void *ptr)