ARGOBOTS
dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
|
Go to the documentation of this file.
12 #define SCHED_CONFIG_HTABLE_SIZE 8
138 va_start(varg_list, config);
155 va_arg(varg_list,
double));
160 va_arg(varg_list,
void *));
230 va_start(varg_list, num_vars);
231 for (idx = 0; idx < num_vars; idx++) {
232 void *ptr = va_arg(varg_list,
void *);
416 int idx,
void *p_val)
485 switch (p_elem->
type) {
495 *((
void **)ptr) = p_elem->
val.
v_ptr;
A struct that sets and gets a scheduler configuration.
ABTU_ret_err int ABTU_hashtable_create(size_t num_entries, size_t data_size, ABTU_hashtable **pp_hashtable)
int ABT_sched_config_set(ABT_sched_config config, int idx, ABT_sched_config_type type, const void *val)
Register a value to a scheduler configuration.
static void sched_config_create_element_int(sched_config_element *p_elem, int val)
static void sched_config_create_element_double(sched_config_element *p_elem, double val)
#define ABTI_CHECK_ERROR(abt_errno)
struct ABT_sched_config_opaque * ABT_sched_config
Scheduler configuration handle type.
static void sched_config_read_element(const sched_config_element *p_elem, void *ptr)
void ABTU_hashtable_get(const ABTU_hashtable *p_hashtable, int key, void *data, int *found)
ABT_sched_config_var ABT_sched_config_automatic
Predefined ABT_sched_config_var to configure whether the scheduler is freed automatically or not.
int ABT_sched_config_read(ABT_sched_config config, int num_vars,...)
Retrieve values from a scheduler configuration.
void ABTU_hashtable_delete(ABTU_hashtable *p_hashtable, int key, int *deleted)
ABTU_ret_err int ABTI_sched_config_read(const ABTI_sched_config *p_config, int idx, void *p_val)
static ABT_sched_config ABTI_sched_config_get_handle(ABTI_sched_config *p_config)
ABT_sched_config_var ABT_sched_config_access
Unused predefined ABT_sched_config_var.
#define ABTI_HANDLE_ERROR(n)
ABT_sched_config_type type
ABT_sched_config_type type
#define ABTI_ASSERT(cond)
ABT_bool ABTI_initialized(void)
int ABT_sched_config_free(ABT_sched_config *config)
Free a scheduler configuration.
@ ABT_SCHED_CONFIG_DOUBLE
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.
#define ABT_SCHED_CONFIG_NULL
union sched_config_element::@2 val
#define ABTI_UB_ASSERT(cond)
#define ABT_ERR_INV_ARG
Error code: invalid user argument.
static void ABTU_free(void *ptr)
static void sched_config_create_element_ptr(sched_config_element *p_elem, void *ptr)
static ABTU_ret_err int sched_config_create_element_typed(sched_config_element *p_elem, ABT_sched_config_type type, const void *p_val)
void ABTU_hashtable_free(ABTU_hashtable *p_hashtable)
ABT_sched_config_var ABT_sched_config_var_end
Predefined ABT_sched_config_var to mark the last parameter.
ABTU_ret_err int ABTU_hashtable_set(ABTU_hashtable *p_hashtable, int key, const void *data, int *overwritten)
#define ABTI_CHECK_NULL_SCHED_CONFIG_PTR(p)
ABT_sched_config_var ABT_sched_basic_freq
Predefined ABT_sched_config_var to configure the frequency for checking events of the basic scheduler...
static ABTI_sched_config * ABTI_sched_config_get_ptr(ABT_sched_config config)
int ABT_sched_config_get(ABT_sched_config config, int idx, ABT_sched_config_type *type, void *val)
Retrieve a value from a scheduler configuration.
#define SCHED_CONFIG_HTABLE_SIZE
int ABT_sched_config_create(ABT_sched_config *config,...)
Create a new scheduler configuration.
ABT_sched_config_type
A struct that sets and gets a scheduler configuration.