Go to the documentation of this file.
11 #if defined(ABT_C_HAVE_VISIBILITY)
12 #define ABT_API_PUBLIC __attribute__((visibility ("default")))
14 #define ABT_API_PUBLIC
18 #if defined(__cplusplus)
46 #define ABT_VERSION "1.1"
68 #define ABT_NUMVERSION 10100300
70 #define ABT_RELEASE_TYPE_ALPHA 0
71 #define ABT_RELEASE_TYPE_BETA 1
72 #define ABT_RELEASE_TYPE_RC 2
73 #define ABT_RELEASE_TYPE_PATCH 3
75 #define ABT_CALC_VERSION(MAJOR, MINOR, REVISION, TYPE, PATCH) \
76 (((MAJOR) * 10000000) + ((MINOR) * 100000) + ((REVISION) * 1000) + ((TYPE) * 100) + (PATCH))
78 #define ABT_DEPRECATED __attribute__((deprecated))
80 #define ABT_ENABLE_VER_20_API_VAL 0
81 #undef ABT_ENABLE_VER_20_API
82 #if ABT_ENABLE_VER_20_API_VAL
83 #define ABT_ENABLE_VER_20_API 1
97 #define ABT_ERR_UNINITIALIZED 1
104 #define ABT_ERR_MEM 2
109 #define ABT_ERR_OTHER 3
114 #define ABT_ERR_INV_XSTREAM 4
119 #define ABT_ERR_INV_XSTREAM_RANK 5
124 #define ABT_ERR_INV_XSTREAM_BARRIER 6
129 #define ABT_ERR_INV_SCHED 7
134 #define ABT_ERR_INV_SCHED_KIND 8
139 #define ABT_ERR_INV_SCHED_PREDEF 9
146 #define ABT_ERR_INV_SCHED_TYPE 10
151 #define ABT_ERR_INV_SCHED_CONFIG 11
156 #define ABT_ERR_INV_POOL 12
161 #define ABT_ERR_INV_POOL_KIND 13
166 #define ABT_ERR_INV_POOL_ACCESS 14
171 #define ABT_ERR_INV_UNIT 15
176 #define ABT_ERR_INV_THREAD 16
181 #define ABT_ERR_INV_THREAD_ATTR 17
190 #define ABT_ERR_INV_TASK 18
195 #define ABT_ERR_INV_KEY 19
200 #define ABT_ERR_INV_MUTEX 20
205 #define ABT_ERR_INV_MUTEX_ATTR 21
210 #define ABT_ERR_INV_COND 22
215 #define ABT_ERR_INV_RWLOCK 23
220 #define ABT_ERR_INV_EVENTUAL 24
225 #define ABT_ERR_INV_FUTURE 25
230 #define ABT_ERR_INV_BARRIER 26
235 #define ABT_ERR_INV_TIMER 27
240 #define ABT_ERR_INV_QUERY_KIND 28
245 #define ABT_ERR_INV_TOOL_CONTEXT 52
250 #define ABT_ERR_INV_ARG 53
255 #define ABT_ERR_XSTREAM 29
262 #define ABT_ERR_XSTREAM_STATE 30
267 #define ABT_ERR_XSTREAM_BARRIER 31
272 #define ABT_ERR_SCHED 32
277 #define ABT_ERR_SCHED_CONFIG 33
282 #define ABT_ERR_POOL 34
287 #define ABT_ERR_UNIT 35
292 #define ABT_ERR_THREAD 36
301 #define ABT_ERR_TASK 37
306 #define ABT_ERR_KEY 38
311 #define ABT_ERR_MUTEX 39
318 #define ABT_ERR_MUTEX_LOCKED 40
323 #define ABT_ERR_COND 41
330 #define ABT_ERR_COND_TIMEDOUT 42
335 #define ABT_ERR_RWLOCK 43
340 #define ABT_ERR_EVENTUAL 44
345 #define ABT_ERR_FUTURE 45
350 #define ABT_ERR_BARRIER 46
355 #define ABT_ERR_TIMER 47
360 #define ABT_ERR_MIGRATION_TARGET 48
369 #define ABT_ERR_MIGRATION_NA 49
376 #define ABT_ERR_MISSING_JOIN 50
381 #define ABT_ERR_FEATURE_NA 51
393 #define ABT_ERR_SYS 54
398 #define ABT_ERR_CPUID 55
689 #define ABT_TOOL_EVENT_THREAD_NONE (0)
694 #define ABT_TOOL_EVENT_THREAD_CREATE (1 << 0)
699 #define ABT_TOOL_EVENT_THREAD_JOIN (1 << 1)
704 #define ABT_TOOL_EVENT_THREAD_FREE (1 << 2)
709 #define ABT_TOOL_EVENT_THREAD_REVIVE (1 << 3)
714 #define ABT_TOOL_EVENT_THREAD_RUN (1 << 4)
719 #define ABT_TOOL_EVENT_THREAD_FINISH (1 << 5)
724 #define ABT_TOOL_EVENT_THREAD_CANCEL (1 << 6)
729 #define ABT_TOOL_EVENT_THREAD_YIELD (1 << 7)
734 #define ABT_TOOL_EVENT_THREAD_SUSPEND (1 << 8)
739 #define ABT_TOOL_EVENT_THREAD_RESUME (1 << 9)
744 #define ABT_TOOL_EVENT_THREAD_ALL ((uint64_t)((1 << 12) - 1))
759 #define ABT_XSTREAM_ANY_RANK -1
762 struct ABT_xstream_opaque;
763 struct ABT_xstream_barrier_opaque;
764 struct ABT_sched_opaque;
765 struct ABT_sched_config_opaque;
766 struct ABT_pool_opaque;
767 struct ABT_pool_config_opaque;
768 struct ABT_unit_opaque;
769 struct ABT_thread_opaque;
770 struct ABT_thread_attr_opaque;
771 struct ABT_task_opaque;
772 struct ABT_key_opaque;
773 struct ABT_mutex_opaque;
774 struct ABT_mutex_attr_opaque;
775 struct ABT_cond_opaque;
776 struct ABT_rwlock_opaque;
777 struct ABT_eventual_opaque;
778 struct ABT_future_opaque;
779 struct ABT_barrier_opaque;
780 struct ABT_timer_opaque;
781 struct ABT_tool_context_opaque;
1034 #define ABT_XSTREAM_NULL ((ABT_xstream) NULL)
1035 #define ABT_XSTREAM_BARRIER_NULL ((ABT_xstream_barrier)NULL)
1036 #define ABT_SCHED_NULL ((ABT_sched) NULL)
1037 #define ABT_SCHED_CONFIG_NULL ((ABT_sched_config) NULL)
1038 #define ABT_POOL_NULL ((ABT_pool) NULL)
1039 #define ABT_POOL_CONFIG_NULL ((ABT_pool_config) NULL)
1040 #define ABT_UNIT_NULL ((ABT_unit) NULL)
1041 #define ABT_THREAD_NULL ((ABT_thread) NULL)
1042 #define ABT_THREAD_ATTR_NULL ((ABT_thread_attr) NULL)
1043 #define ABT_TASK_NULL ((ABT_task) NULL)
1044 #define ABT_KEY_NULL ((ABT_key) NULL)
1045 #define ABT_MUTEX_NULL ((ABT_mutex) NULL)
1046 #define ABT_MUTEX_ATTR_NULL ((ABT_mutex_attr) NULL)
1047 #define ABT_COND_NULL ((ABT_cond) NULL)
1048 #define ABT_RWLOCK_NULL ((ABT_rwlock) NULL)
1049 #define ABT_EVENTUAL_NULL ((ABT_eventual) NULL)
1050 #define ABT_FUTURE_NULL ((ABT_future) NULL)
1051 #define ABT_BARRIER_NULL ((ABT_barrier) NULL)
1052 #define ABT_TIMER_NULL ((ABT_timer) NULL)
1053 #define ABT_TOOL_CONTEXT_NULL ((ABT_tool_context) NULL)
1055 #define ABT_XSTREAM_NULL ((ABT_xstream) (0x01))
1056 #define ABT_XSTREAM_BARRIER_NULL ((ABT_xstream_barrier)(0x02))
1057 #define ABT_SCHED_NULL ((ABT_sched) (0x03))
1058 #define ABT_SCHED_CONFIG_NULL ((ABT_sched_config) (0x04))
1059 #define ABT_POOL_NULL ((ABT_pool) (0x05))
1060 #define ABT_POOL_CONFIG_NULL ((ABT_pool_config) (0x06))
1061 #define ABT_UNIT_NULL ((ABT_unit) (0x07))
1062 #define ABT_THREAD_NULL ((ABT_thread) (0x08))
1063 #define ABT_THREAD_ATTR_NULL ((ABT_thread_attr) (0x09))
1064 #define ABT_TASK_NULL ((ABT_task) (0x0a))
1065 #define ABT_KEY_NULL ((ABT_key) (0x0b))
1066 #define ABT_MUTEX_NULL ((ABT_mutex) (0x0c))
1067 #define ABT_MUTEX_ATTR_NULL ((ABT_mutex_attr) (0x0d))
1068 #define ABT_COND_NULL ((ABT_cond) (0x0e))
1069 #define ABT_RWLOCK_NULL ((ABT_rwlock) (0x0f))
1070 #define ABT_EVENTUAL_NULL ((ABT_eventual) (0x10))
1071 #define ABT_FUTURE_NULL ((ABT_future) (0x11))
1072 #define ABT_BARRIER_NULL ((ABT_barrier) (0x12))
1073 #define ABT_TIMER_NULL ((ABT_timer) (0x13))
1074 #define ABT_TOOL_CONTEXT_NULL ((ABT_tool_context) (0x14))
1114 #define ABT_MUTEX_INITIALIZER \
1115 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
1141 #define ABT_RECURSIVE_MUTEX_INITIALIZER \
1142 { { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
1157 #define ABT_MUTEX_MEMORY_GET_HANDLE(p_mutex_memory) \
1158 ((ABT_mutex)p_mutex_memory)
1203 #define ABT_COND_INITIALIZER \
1204 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
1220 #define ABT_COND_MEMORY_GET_HANDLE(p_cond_memory) \
1221 ((ABT_cond)p_cond_memory)
1591 #ifdef ABT_ENABLE_VER_20_API
1789 void (*thread_func)(
void *),
void *arg,
1792 void (**thread_func_list)(
void *),
void **arg_list,
1869 #define ABT_task_is_unnamed ABT_thread_is_unnamed
1870 #define ABT_task_set_specific ABT_thread_set_specific
1871 #define ABT_task_get_specific ABT_thread_get_specific
1880 #define ABT_self_get_task ABT_self_get_thread
1881 #define ABT_self_get_task_id ABT_self_get_thread_id
1999 uint64_t event_mask,
2004 #if defined(__cplusplus)
int ABT_mutex_lock_low(ABT_mutex mutex) ABT_API_PUBLIC
Lock a mutex with low priority.
ABT_unit(* ABT_pool_pop_fn)(ABT_pool)
ABT_task(* ABT_unit_get_task_fn)(ABT_unit)
ABT_task_state
State of a tasklet.
@ ABT_INFO_QUERY_KIND_ENABLED_STACK_OVERFLOW_CHECK
int ABT_xstream_set_affinity(ABT_xstream xstream, int num_cpuids, int *cpuids) ABT_API_PUBLIC
Bind an execution stream to target CPUs.
@ ABT_THREAD_STATE_TERMINATED
int ABT_thread_migrate_to_xstream(ABT_thread thread, ABT_xstream xstream) ABT_API_PUBLIC
Request a migration of a work unit to a specific execution stream.
A struct that sets and gets a scheduler configuration.
struct ABT_key_opaque * ABT_key
Work-unit-specific data key handle type.
int ABT_info_print_xstream(FILE *fp, ABT_xstream xstream) ABT_API_PUBLIC
Print the information of an execution stream.
int ABT_xstream_barrier_free(ABT_xstream_barrier *barrier) ABT_API_PUBLIC
Free an execution-stream barrier.
ABT_sched_predef
Predefined scheduler type.
ABT_unit_get_task_fn u_get_task
Unused function.
int ABT_thread_get_arg(ABT_thread thread, void **arg) ABT_API_PUBLIC
Retrieve an argument for a work-unit function of a work unit.
int ABT_thread_resume(ABT_thread thread) ABT_API_PUBLIC
Resume a ULT.
int ABT_pool_get_data(ABT_pool pool, void **data) ABT_API_PUBLIC
Retrieve user data from a pool.
int ABT_eventual_reset(ABT_eventual eventual) ABT_API_PUBLIC
Reset a readiness of an eventual.
int ABT_pool_pop_wait(ABT_pool pool, ABT_unit *unit, double time_secs) ABT_API_PUBLIC
Pop a unit from a pool with wait.
double ABT_get_wtime(void) ABT_API_PUBLIC
Get elapsed wall clock time.
int ABT_sched_create_basic(ABT_sched_predef predef, int num_pools, ABT_pool *pools, ABT_sched_config config, ABT_sched *newsched) ABT_API_PUBLIC
Create a new scheduler with a predefined scheduler type.
int ABT_thread_is_primary(ABT_thread thread, ABT_bool *is_primary) ABT_API_PUBLIC
Check if a work unit is the primary ULT.
int ABT_bool
Boolean type.
int ABT_pool_get_size(ABT_pool pool, size_t *size) ABT_API_PUBLIC
Get the size of a pool.
int ABT_task_cancel(ABT_task task) ABT_API_PUBLIC
Send a termination request to a work unit.
int ABT_timer_create(ABT_timer *newtimer) ABT_API_PUBLIC
Create a new timer.
ABT_bool(* ABT_unit_is_in_pool_fn)(ABT_unit)
int ABT_info_print_thread_attr(FILE *fp, ABT_thread_attr attr) ABT_API_PUBLIC
Print the information of a ULT attribute.
int ABT_timer_free(ABT_timer *timer) ABT_API_PUBLIC
Free a timer.
int ABT_self_get_arg(void **arg) ABT_API_PUBLIC
Retrieve an argument for a work-unit function of the calling work unit.
int ABT_task_self_id(uint64_t *id) ABT_API_PUBLIC
Get ID of the calling work unit.
void(* ABT_sched_run_fn)(ABT_sched)
int ABT_cond_free(ABT_cond *cond) ABT_API_PUBLIC
Free a condition variable.
ABT_sched_type type
Unused value.
int ABT_pool_create(ABT_pool_def *def, ABT_pool_config config, ABT_pool *newpool) ABT_API_PUBLIC
Create a new pool.
int ABT_task_self(ABT_task *task) ABT_API_PUBLIC
Get the calling work unit.
struct ABT_thread_attr_opaque * ABT_thread_attr
ULT attribute handle type.
struct ABT_thread_opaque * ABT_task
Work unit handle type.
int ABT_pool_add_sched(ABT_pool pool, ABT_sched sched) ABT_API_PUBLIC
Create a new work unit associated with a scheduler and push it to a pool.
struct ABT_thread_opaque * ABT_thread
Work unit handle type.
int ABT_cond_timedwait(ABT_cond cond, ABT_mutex mutex, const struct timespec *abstime) ABT_API_PUBLIC
Wait on a condition variable with a timeout limit.
int ABT_thread_join_many(int num_threads, ABT_thread *thread_list) ABT_API_PUBLIC
Wait for a set of work units to terminate.
int ABT_task_get_last_pool_id(ABT_task task, int *id) ABT_API_PUBLIC
Get the last pool's ID of a work unit.
int ABT_thread_create_many(int num_threads, ABT_pool *pool_list, void(**thread_func_list)(void *), void **arg_list, ABT_thread_attr attr, ABT_thread *newthread_list) ABT_API_PUBLIC
Create a set of new ULTs.
int ABT_self_get_thread_func(void(**thread_func)(void *)) ABT_API_PUBLIC
Retrieve a work-unit function of the calling work unit.
ABT_unit_type(* ABT_unit_get_type_fn)(ABT_unit)
int ABT_info_print_all_xstreams(FILE *fp) ABT_API_PUBLIC
Print the information of all execution streams.
int ABT_xstream_self(ABT_xstream *xstream) ABT_API_PUBLIC
Get an execution stream that is running the calling work unit.
ABT_unit(* ABT_unit_create_from_task_fn)(ABT_task)
int ABT_future_free(ABT_future *future) ABT_API_PUBLIC
Free a future.
int ABT_thread_get_stacksize(ABT_thread thread, size_t *stacksize) ABT_API_PUBLIC
Get a stack size of a work unit.
@ ABT_INFO_QUERY_KIND_DEFAULT_SCHED_STACKSIZE
@ ABT_TASK_STATE_TERMINATED
@ ABT_INFO_QUERY_KIND_ENABLED_STACK_UNWIND
int ABT_future_wait(ABT_future future) ABT_API_PUBLIC
Wait on a future.
int ABT_xstream_set_rank(ABT_xstream xstream, int rank) ABT_API_PUBLIC
Set a rank for an execution stream.
int ABT_xstream_get_num(int *num_xstreams) ABT_API_PUBLIC
Get the number of current existing execution streams.
int ABT_xstream_get_affinity(ABT_xstream xstream, int max_cpuids, int *cpuids, int *num_cpuids) ABT_API_PUBLIC
Get CPU IDs of CPUs to which an execution stream is bound.
int ABT_thread_set_migratable(ABT_thread thread, ABT_bool migratable) ABT_API_PUBLIC
Set the migratability in a work unit.
int ABT_unit_set_associated_pool(ABT_unit unit, ABT_pool pool) ABT_API_PUBLIC
No operation.
int ABT_sched_exit(ABT_sched sched) ABT_API_PUBLIC
Request a scheduler to finish.
ABT_unit(* ABT_pool_pop_wait_fn)(ABT_pool, double)
int ABT_key_get(ABT_key key, void **value) ABT_API_PUBLIC
Get a value associated with a work-unit-specific data key in the calling work unit.
int ABT_thread_get_id(ABT_thread thread, ABT_unit_id *thread_id) ABT_API_PUBLIC
Get ID of a work unit.
int ABT_rwlock_free(ABT_rwlock *rwlock) ABT_API_PUBLIC
Free a readers-writer lock.
ABT_unit_free_fn u_free
Function that frees a work unit.
ABT_sched_run_fn run
Function that defines a kernel of a scheduler.
struct ABT_sched_config_opaque * ABT_sched_config
Scheduler configuration handle type.
struct ABT_mutex_opaque * ABT_mutex
Mutex handle type.
int ABT_mutex_unlock_de(ABT_mutex mutex) ABT_API_PUBLIC
Unlock a mutex and try to hand it over a waiter associated with an execution stream that is different...
int ABT_thread_attr_create(ABT_thread_attr *newattr) ABT_API_PUBLIC
Create a new ULT attribute.
int ABT_xstream_barrier_wait(ABT_xstream_barrier barrier) ABT_API_PUBLIC
Wait on an execution-stream barrier.
int ABT_rwlock_rdlock(ABT_rwlock rwlock) ABT_API_PUBLIC
Lock a readers-writer lock as a reader.
A struct that can be converted to ABT_cond.
int ABT_timer_get_overhead(double *overhead) ABT_API_PUBLIC
Obtain an overhead time of using ABT_timer.
ABT_pool_remove_fn p_remove
Function that removes a work unit from a pool.
int ABT_info_trigger_print_all_thread_stacks(FILE *fp, double timeout, void(*cb_func)(ABT_bool, void *), void *arg) ABT_API_PUBLIC
Print stacks of work units in pools associated with all the main schedulers.
int ABT_self_get_thread(ABT_thread *thread) ABT_API_PUBLIC
Get the calling work unit.
int ABT_key_free(ABT_key *key) ABT_API_PUBLIC
Free a work-unit-specific data key.
@ ABT_INFO_QUERY_KIND_ENABLED_MIGRATION
ABT_unit(* ABT_pool_pop_timedwait_fn)(ABT_pool, double)
int ABT_info_print_thread_stacks_in_pool(FILE *fp, ABT_pool pool) ABT_API_PUBLIC
Print stacks of all work units in a pool.
int ABT_mutex_lock(ABT_mutex mutex) ABT_API_PUBLIC
Lock a mutex.
ABT_unit_get_type_fn u_get_type
Unused function.
int ABT_thread_attr_set_stack(ABT_thread_attr attr, void *stackaddr, size_t stacksize) ABT_API_PUBLIC
Set stack attributes in a ULT attribute.
ABT_unit_get_thread_fn u_get_thread
Unused function.
int ABT_xstream_cancel(ABT_xstream xstream) ABT_API_PUBLIC
Send a cancellation request to an execution stream.
ABT_unit_is_in_pool_fn u_is_in_pool
Function that returns whether a work unit is in its associated pool or not.
int ABT_self_get_last_pool(ABT_pool *pool) ABT_API_PUBLIC
Get the last pool of the calling work unit.
int ABT_timer_dup(ABT_timer timer, ABT_timer *newtimer) ABT_API_PUBLIC
Duplicate a timer.
int ABT_xstream_create(ABT_sched sched, ABT_xstream *newxstream) ABT_API_PUBLIC
Create a new execution stream.
ABT_sched_type
Scheduler's work unit type.
int ABT_self_set_specific(ABT_key key, void *value) ABT_API_PUBLIC
Associate a value with a work-unit-specific data key in the calling work unit.
int ABT_future_create(uint32_t num_compartments, void(*cb_func)(void **arg), ABT_future *newfuture) ABT_API_PUBLIC
Create a new future.
int ABT_thread_get_state(ABT_thread thread, ABT_thread_state *state) ABT_API_PUBLIC
Get a state of a work unit.
int ABT_finalize(void) ABT_API_PUBLIC
Finalize the Argobots execution environment.
int ABT_xstream_get_main_sched(ABT_xstream xstream, ABT_sched *sched) ABT_API_PUBLIC
Retrieve the main scheduler of an execution stream.
int(* ABT_pool_print_all_fn)(ABT_pool, void *arg, void(*)(void *, ABT_unit))
int ABT_thread_attr_free(ABT_thread_attr *attr) ABT_API_PUBLIC
Free a ULT attribute.
struct ABT_pool_opaque * ABT_pool
Pool handle type.
int ABT_xstream_get_rank(ABT_xstream xstream, int *rank) ABT_API_PUBLIC
Retrieve a rank of an execution stream.
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_xstream_self_rank(int *rank) ABT_API_PUBLIC
Return a rank of an execution stream associated with a caller.
ABT_thread_state
State of a work unit.
int ABT_thread_free(ABT_thread *thread) ABT_API_PUBLIC
Free a work unit.
int ABT_mutex_equal(ABT_mutex mutex1, ABT_mutex mutex2, ABT_bool *result) ABT_API_PUBLIC
Compare two mutex handles for equality.
int ABT_sched_config_read(ABT_sched_config config, int num_vars,...) ABT_API_PUBLIC
Retrieve values from a scheduler configuration.
int ABT_sched_finish(ABT_sched sched) ABT_API_PUBLIC
Request a scheduler to finish after its pools get empty.
int ABT_xstream_is_primary(ABT_xstream xstream, ABT_bool *is_primary) ABT_API_PUBLIC
Check if the target execution stream is primary.
struct ABT_sched_opaque * ABT_sched
Scheduler handle type.
int ABT_task_get_arg(ABT_task task, void **arg) ABT_API_PUBLIC
Retrieve an argument for a work-unit function of a work unit.
@ ABT_INFO_QUERY_KIND_FCONTEXT
int ABT_init(int argc, char **argv) ABT_API_PUBLIC
Initialize the Argobots execution environment.
void(* ABT_unit_free_fn)(ABT_unit *)
int ABT_task_create_on_xstream(ABT_xstream xstream, void(*task_func)(void *), void *arg, ABT_task *newtask) ABT_API_PUBLIC
Create a new tasklet associated with an execution stream.
int ABT_thread_migrate_to_sched(ABT_thread thread, ABT_sched sched) ABT_API_PUBLIC
Request a migration of a work unit to a specific scheduler.
int ABT_mutex_trylock(ABT_mutex mutex) ABT_API_PUBLIC
Attempt to lock a mutex.
int ABT_thread_exit(void) ABT_API_PUBLIC
Terminate a calling ULT.
void(* ABT_tool_task_callback_fn)(ABT_task, ABT_xstream, uint64_t event, ABT_tool_context context, void *user_arg)
int ABT_timer_start(ABT_timer timer) ABT_API_PUBLIC
Start a timer.
@ ABT_THREAD_STATE_BLOCKED
@ ABT_INFO_QUERY_KIND_ENABLED_EXTERNAL_THREAD
@ ABT_INFO_QUERY_KIND_ENABLED_AFFINITY
int ABT_info_query_config(ABT_info_query_kind query_kind, void *val) ABT_API_PUBLIC
Retrieve the configuration information.
int ABT_thread_set_specific(ABT_thread thread, ABT_key key, void *value) ABT_API_PUBLIC
Set a value with a work-unit-specific data key in a work unit.
struct ABT_mutex_attr_opaque * ABT_mutex_attr
Mutex attribute handle type.
int ABT_error_get_str(int err, char *str, size_t *len) ABT_API_PUBLIC
Retrieve a string of an error code and its length.
@ ABT_INFO_QUERY_KIND_ENABLED_CHECK_POOL_PRODUCER
int ABT_self_on_primary_xstream(ABT_bool *on_primary) ABT_API_PUBLIC
Check if the caller is running on the primary execution stream.
uint64_t ABT_unit_id
Work unit ID type.
A struct that defines a pool.
int ABT_mutex_create(ABT_mutex *newmutex) ABT_API_PUBLIC
Create a new mutex.
struct ABT_xstream_opaque * ABT_xstream
Execution stream handle type.
int(* ABT_pool_remove_fn)(ABT_pool, ABT_unit)
int ABT_info_print_thread_stack(FILE *fp, ABT_thread thread) ABT_API_PUBLIC
Print stack of a work unit.
int(* ABT_pool_init_fn)(ABT_pool, ABT_pool_config)
@ ABT_INFO_QUERY_KIND_ENABLED_VALGRIND
struct ABT_barrier_opaque * ABT_barrier
Barrier handle type.
int ABT_thread_yield(void) ABT_API_PUBLIC
Yield the calling ULT to its parent ULT.
int ABT_self_suspend(void) ABT_API_PUBLIC
Suspend the calling ULT.
ABT_unit_type
Type of a work unit for scheduling.
ABT_sched_config_var ABT_sched_config_access
Unused predefined ABT_sched_config_var.
int ABT_pool_remove(ABT_pool pool, ABT_unit unit) ABT_API_PUBLIC
Remove a specified work unit from a pool.
int ABT_self_set_associated_pool(ABT_pool pool) ABT_API_PUBLIC
Set an associated pool for the calling work unit.
int ABT_thread_get_last_pool(ABT_thread thread, ABT_pool *pool) ABT_API_PUBLIC
Get the last pool of a work unit.
int ABT_xstream_create_basic(ABT_sched_predef predef, int num_pools, ABT_pool *pools, ABT_sched_config config, ABT_xstream *newxstream) ABT_API_PUBLIC
Create a new execution stream with a predefined scheduler.
struct ABT_pool_config_opaque * ABT_pool_config
Pool configuration handle type.
int ABT_xstream_create_with_rank(ABT_sched sched, int rank, ABT_xstream *newxstream) ABT_API_PUBLIC
Create a new execution stream with a specific rank.
int ABT_mutex_lock_high(ABT_mutex mutex) ABT_API_PUBLIC
Lock a mutex with high priority.
int ABT_self_get_last_pool_id(int *pool_id) ABT_API_PUBLIC
Get ID of the last pool of the calling work unit.
ABT_pool_pop_timedwait_fn p_pop_timedwait
Function that pops a work unit from a pool with wait.
ABT_info_query_kind
Query kind for ABT_info_query_config().
ABT_pool_pop_fn p_pop
Function that pops a work unit from a pool.
ABT_pool_free_fn p_free
Function that frees a pool.
struct ABT_future_opaque * ABT_future
Future handle type.
@ ABT_INFO_QUERY_KIND_ENABLED_STACKABLE_SCHED
int ABT_xstream_check_events(ABT_sched sched) ABT_API_PUBLIC
Process events associated with a scheduler.
int ABT_thread_set_associated_pool(ABT_thread thread, ABT_pool pool) ABT_API_PUBLIC
Set an associated pool for the target work unit.
int ABT_thread_join(ABT_thread thread) ABT_API_PUBLIC
Wait for a work unit to terminate.
int ABT_mutex_attr_free(ABT_mutex_attr *attr) ABT_API_PUBLIC
Free a mutex attribute.
int(* ABT_sched_init_fn)(ABT_sched, ABT_sched_config)
@ ABT_INFO_QUERY_KIND_ENABLED_PRINT_CONFIG
ABT_pool_print_all_fn p_print_all
Function that applies a user-given function to all work units in a pool.
int ABT_barrier_free(ABT_barrier *barrier) ABT_API_PUBLIC
Free a barrier.
int ABT_xstream_set_main_sched_basic(ABT_xstream xstream, ABT_sched_predef predef, int num_pools, ABT_pool *pools) ABT_API_PUBLIC
Set the main scheduler of an execution stream to a predefined scheduler.
int ABT_xstream_get_main_pools(ABT_xstream xstream, int max_pools, ABT_pool *pools) ABT_API_PUBLIC
Get pools associated with the main scheduler of an execution stream.
ABT_pool_access access
Access type.
int ABT_thread_attr_set_migratable(ABT_thread_attr attr, ABT_bool is_migratable) ABT_API_PUBLIC
Set the ULT's migratability in a ULT attribute.
ABT_sched_state
Unused enum.
int ABT_mutex_attr_set_recursive(ABT_mutex_attr attr, ABT_bool recursive) ABT_API_PUBLIC
Set a recursive property in a mutex attribute.
int ABT_task_revive(ABT_pool pool, void(*task_func)(void *), void *arg, ABT_task *task) ABT_API_PUBLIC
Revive a terminated work unit.
int ABT_xstream_set_cpubind(ABT_xstream xstream, int cpuid) ABT_API_PUBLIC
Bind an execution stream to a target CPU.
int ABT_self_is_primary(ABT_bool *is_primary) ABT_API_PUBLIC
Check if the caller is the primary ULT.
struct ABT_unit_opaque * ABT_unit
Work unit handle type for scheduling.
@ ABT_INFO_QUERY_KIND_ENABLED_DEBUG
int ABT_key_create(void(*destructor)(void *value), ABT_key *newkey) ABT_API_PUBLIC
Create a new work-unit-specific data key.
int ABT_task_free(ABT_task *task) ABT_API_PUBLIC
Free a work unit.
int ABT_sched_get_total_size(ABT_sched sched, size_t *size) ABT_API_PUBLIC
Obtain the sum of the total sizes of pools associated with a scheduler.
ABT_sched_config_type type
int ABT_thread_is_unnamed(ABT_thread thread, ABT_bool *is_unnamed) ABT_API_PUBLIC
Check if a work unit is unnamed.
int ABT_sched_config_free(ABT_sched_config *config) ABT_API_PUBLIC
Free a scheduler configuration.
@ ABT_SCHED_CONFIG_DOUBLE
int ABT_eventual_free(ABT_eventual *eventual) ABT_API_PUBLIC
Free an eventual.
int ABT_xstream_exit(void) ABT_API_PUBLIC
Terminate an execution stream that is running the calling ULT.
struct ABT_eventual_opaque * ABT_eventual
Eventual handle type.
int ABT_pool_pop(ABT_pool pool, ABT_unit *unit) ABT_API_PUBLIC
Pop a work unit from a pool.
int ABT_cond_create(ABT_cond *newcond) ABT_API_PUBLIC
Create a new condition variable.
int ABT_timer_stop(ABT_timer timer) ABT_API_PUBLIC
Stop a timer.
ABT_pool_get_size_fn p_get_size
Function that returns a work unit.
int ABT_xstream_join(ABT_xstream xstream) ABT_API_PUBLIC
Wait for an execution stream to terminate.
ABT_pool_push_fn p_push
Function that pushes a work unit to a pool.
@ ABT_INFO_QUERY_KIND_ENABLED_TOOL
int ABT_thread_create_on_xstream(ABT_xstream xstream, void(*thread_func)(void *), void *arg, ABT_thread_attr attr, ABT_thread *newthread) ABT_API_PUBLIC
Create a new ULT associated with an execution stream.
int ABT_self_exit(void) ABT_API_PUBLIC
Terminate a calling ULT.
int ABT_thread_attr_set_callback(ABT_thread_attr attr, void(*cb_func)(ABT_thread thread, void *cb_arg), void *cb_arg) ABT_API_PUBLIC
Set a callback function and its argument in a ULT attribute.
int ABT_thread_set_arg(ABT_thread thread, void *arg) ABT_API_PUBLIC
Set an argument for a work-unit function of a work unit.
ABT_unit_id ABT_thread_id
Work unit ID type.
int ABT_pool_push(ABT_pool pool, ABT_unit unit) ABT_API_PUBLIC
Push a unit to a pool.
ABT_sched_get_migr_pool_fn get_migr_pool
Function that returns a pool for migration.
int ABT_mutex_attr_get_recursive(ABT_mutex_attr attr, ABT_bool *recursive) ABT_API_PUBLIC
Get a recursive property in a mutex attribute.
int ABT_thread_attr_get_stacksize(ABT_thread_attr attr, size_t *stacksize) ABT_API_PUBLIC
Get the stack size from a ULT attribute.
@ ABT_INFO_QUERY_KIND_DYNAMIC_PROMOTION
int ABT_thread_get_last_xstream(ABT_thread thread, ABT_xstream *xstream) ABT_API_PUBLIC
Get an execution stream associated with a work unit.
struct ABT_timer_opaque * ABT_timer
Timer handle type.
int ABT_cond_broadcast(ABT_cond cond) ABT_API_PUBLIC
Broadcast a condition.
int ABT_xstream_get_cpubind(ABT_xstream xstream, int *cpuid) ABT_API_PUBLIC
Get CPU ID of a CPU to which an execution stream is bound.
int ABT_sched_get_num_pools(ABT_sched sched, int *num_pools) ABT_API_PUBLIC
Obtain the number of pools associated with a scheduler.
ABT_thread(* ABT_unit_get_thread_fn)(ABT_unit)
int ABT_pool_get_total_size(ABT_pool pool, size_t *size) ABT_API_PUBLIC
Get the total size of a pool.
int ABT_thread_migrate(ABT_thread thread) ABT_API_PUBLIC
Request a migration of a work unit to any available execution stream.
int ABT_thread_self_id(ABT_unit_id *id) ABT_API_PUBLIC
Get ID of the calling work unit.
int ABT_info_print_pool(FILE *fp, ABT_pool pool) ABT_API_PUBLIC
Print the information of a pool.
int ABT_thread_self(ABT_thread *thread) ABT_API_PUBLIC
Get the calling work unit.
struct ABT_xstream_barrier_opaque * ABT_xstream_barrier
Execution-stream barrier handle type.
ABT_unit_create_from_task_fn u_create_from_task
Unused function.
int ABT_self_get_specific(ABT_key key, void **value) ABT_API_PUBLIC
Get a value associated with a work-unit-specific data key in the calling work unit.
void(* ABT_pool_push_fn)(ABT_pool, ABT_unit)
int ABT_thread_free_many(int num_threads, ABT_thread *thread_list) ABT_API_PUBLIC
Free a set of work units.
@ ABT_INFO_QUERY_KIND_DEFAULT_THREAD_STACKSIZE
int ABT_self_set_arg(void *arg) ABT_API_PUBLIC
Set an argument for a work-unit function of the calling work unit.
int ABT_pool_create_basic(ABT_pool_kind kind, ABT_pool_access access, ABT_bool automatic, ABT_pool *newpool) ABT_API_PUBLIC
Create a new pool from a predefined type.
int ABT_eventual_wait(ABT_eventual eventual, void **value) ABT_API_PUBLIC
Wait on an eventual.
@ ABT_INFO_QUERY_KIND_ENABLED_CHECK_POOL_CONSUMER
@ ABT_XSTREAM_STATE_RUNNING
@ ABT_SCHED_STATE_RUNNING
int ABT_pool_print_all(ABT_pool pool, void *arg, void(*print_fn)(void *arg, ABT_unit)) ABT_API_PUBLIC
int ABT_thread_set_callback(ABT_thread thread, void(*cb_func)(ABT_thread thread, void *cb_arg), void *cb_arg) ABT_API_PUBLIC
Register a callback function in a work unit.
@ ABT_INFO_QUERY_KIND_ENABLED_CHECK_ERROR
int ABT_task_get_id(ABT_task task, uint64_t *task_id) ABT_API_PUBLIC
Get ID of a work unit.
int ABT_thread_get_thread_func(ABT_thread thread, void(**thread_func)(void *)) ABT_API_PUBLIC
Retrieve a work-unit function of a work unit.
int ABT_cond_wait(ABT_cond cond, ABT_mutex mutex) ABT_API_PUBLIC
Wait on a condition variable.
int ABT_xstream_free(ABT_xstream *xstream) ABT_API_PUBLIC
Free an execution stream.
ABT_sched_free_fn free
Function that frees a scheduler.
int ABT_initialized(void) ABT_API_PUBLIC
Check if the Argobots execution environment has been initialized.
int ABT_future_set(ABT_future future, void *value) ABT_API_PUBLIC
Signal a future.
int ABT_thread_is_migratable(ABT_thread thread, ABT_bool *is_migratable) ABT_API_PUBLIC
Get the migratability of a work unit.
int ABT_mutex_spinlock(ABT_mutex mutex) ABT_API_PUBLIC
Lock a mutex in a busy-wait form.
int ABT_task_get_last_pool(ABT_task task, ABT_pool *pool) ABT_API_PUBLIC
Get the last pool of a work unit.
int ABT_sched_set_data(ABT_sched sched, void *data) ABT_API_PUBLIC
Associate a user value with a scheduler.
int ABT_info_print_thread(FILE *fp, ABT_thread thread) ABT_API_PUBLIC
Print the information of a work unit.
int ABT_xstream_get_state(ABT_xstream xstream, ABT_xstream_state *state) ABT_API_PUBLIC
Get a state of an execution stream.
int ABT_thread_create(ABT_pool pool, void(*thread_func)(void *), void *arg, ABT_thread_attr attr, ABT_thread *newthread) ABT_API_PUBLIC
Create a new ULT.
int ABT_rwlock_wrlock(ABT_rwlock rwlock) ABT_API_PUBLIC
Lock a readers-writer lock as a writer.
int ABT_thread_get_unit(ABT_thread thread, ABT_unit *unit) ABT_API_PUBLIC
Get a unit handle of the target work unit.
A struct that defines a scheduler.
int ABT_pool_set_data(ABT_pool pool, void *data) ABT_API_PUBLIC
Set user data in a pool.
int ABT_self_yield(void) ABT_API_PUBLIC
Yield the calling ULT to its parent ULT.
int ABT_task_create(ABT_pool pool, void(*task_func)(void *), void *arg, ABT_task *newtask) ABT_API_PUBLIC
Create a new tasklet.
int ABT_xstream_set_main_sched(ABT_xstream xstream, ABT_sched sched) ABT_API_PUBLIC
Set the main scheduler of an execution stream.
int ABT_rwlock_unlock(ABT_rwlock rwlock) ABT_API_PUBLIC
Unlock a readers-writer lock.
ABT_unit_create_from_thread_fn u_create_from_thread
Function that creates an ABT_unit handle that is associated with an ABT_thread handle.
int ABT_timer_stop_and_add(ABT_timer timer, double *secs) ABT_API_PUBLIC
Stop a timer and add an elapsed time of a timer.
ABT_pool(* ABT_sched_get_migr_pool_fn)(ABT_sched)
@ ABT_INFO_QUERY_KIND_ENABLED_PRESERVE_FPU
size_t(* ABT_pool_get_size_fn)(ABT_pool)
int ABT_task_equal(ABT_task task1, ABT_task task2, ABT_bool *result) ABT_API_PUBLIC
Compare two work-unit handles for equality.
int ABT_future_reset(ABT_future future) ABT_API_PUBLIC
Reset readiness of a future.
@ ABT_INFO_QUERY_KIND_ENABLED_PRINT_ERRNO
int ABT_mutex_unlock_se(ABT_mutex mutex) ABT_API_PUBLIC
Unlock a mutex and try to hand it over a waiter associated with the same execution stream.
int ABT_self_get_xstream_rank(int *rank) ABT_API_PUBLIC
Return a rank of an execution stream that is running the calling work unit.
A struct that can be converted to ABT_mutex.
int ABT_pool_pop_timedwait(ABT_pool pool, ABT_unit *unit, double abstime_secs) ABT_DEPRECATED ABT_API_PUBLIC
Pop a unit from a pool with timed wait.
int ABT_pool_free(ABT_pool *pool) ABT_API_PUBLIC
Free a pool.
struct ABT_cond_opaque * ABT_cond
Condition variable handle type.
int ABT_eventual_test(ABT_eventual eventual, void **value, ABT_bool *is_ready) ABT_API_PUBLIC
Check if an eventual is ready.
int ABT_task_get_state(ABT_task task, ABT_task_state *state) ABT_API_PUBLIC
Get a state of a tasklet.
@ ABT_SCHED_STATE_TERMINATED
int ABT_info_print_task(FILE *fp, ABT_task task) ABT_API_PUBLIC
Print the information of a work unit.
int(* ABT_pool_free_fn)(ABT_pool)
int ABT_info_print_config(FILE *fp) ABT_API_PUBLIC
Print the runtime information of Argobots.
@ ABT_SCHED_STATE_STOPPED
int ABT_thread_attr_get_stack(ABT_thread_attr attr, void **stackaddr, size_t *stacksize) ABT_API_PUBLIC
Get stack attributes from a ULT attribute.
int ABT_task_set_migratable(ABT_task task, ABT_bool flag) ABT_API_PUBLIC
Set the migratability in a work unit.
ABT_sched_config_var ABT_sched_config_var_end
Predefined ABT_sched_config_var to mark the last parameter.
int ABT_mutex_create_with_attr(ABT_mutex_attr attr, ABT_mutex *newmutex) ABT_API_PUBLIC
Create a new mutex with mutex attributes.
int ABT_task_get_xstream(ABT_task task, ABT_xstream *xstream) ABT_API_PUBLIC
Get an execution stream associated with a work unit.
int ABT_self_get_unit(ABT_unit *unit) ABT_API_PUBLIC
Get a unit handle of the calling work unit.
int ABT_thread_yield_to(ABT_thread thread) ABT_API_PUBLIC
Yield the calling ULT to another ULT.
int ABT_thread_get_last_pool_id(ABT_thread thread, int *id) ABT_API_PUBLIC
Get the last pool's ID of a work unit.
int ABT_thread_revive(ABT_pool pool, void(*thread_func)(void *), void *arg, ABT_thread *thread) ABT_API_PUBLIC
Revive a terminated work unit.
int ABT_self_get_type(ABT_unit_type *type) ABT_API_PUBLIC
Obtain a type of the caller.
int ABT_mutex_unlock(ABT_mutex mutex) ABT_API_PUBLIC
Unlock a mutex.
int ABT_sched_has_to_stop(ABT_sched sched, ABT_bool *stop) ABT_API_PUBLIC
Check if a scheduler needs to stop.
int ABT_barrier_reinit(ABT_barrier barrier, uint32_t num_waiters) ABT_API_PUBLIC
Reinitialize a barrier with a new number of waiters.
int ABT_thread_equal(ABT_thread thread1, ABT_thread thread2, ABT_bool *result) ABT_API_PUBLIC
Compare two work unit handles for equality.
int ABT_timer_read(ABT_timer timer, double *secs) ABT_API_PUBLIC
Read the elapsed time of the timer.
int ABT_self_is_unnamed(ABT_bool *is_unnamed) ABT_API_PUBLIC
Check if the calling work unit is unnamed.
ABT_pool_init_fn p_init
Function that frees a work unit.
ABT_sched_init_fn init
Function that initializes a scheduler.
@ ABT_THREAD_STATE_RUNNING
int ABT_thread_attr_set_stacksize(ABT_thread_attr attr, size_t stacksize) ABT_API_PUBLIC
Set stack size in a ULT attribute.
int ABT_xstream_revive(ABT_xstream xstream) ABT_API_PUBLIC
Revive a terminated execution stream.
int ABT_sched_free(ABT_sched *sched) ABT_API_PUBLIC
Free a scheduler.
@ ABT_INFO_QUERY_KIND_ENABLED_TASK_CANCEL
int ABT_xstream_run_unit(ABT_unit unit, ABT_pool pool) ABT_API_PUBLIC
Execute a work unit.
int ABT_xstream_barrier_create(uint32_t num_waiters, ABT_xstream_barrier *newbarrier) ABT_API_PUBLIC
Create a new execution-stream barrier.
@ ABT_INFO_QUERY_KIND_DEFAULT_SCHED_EVENT_FREQ
void(* ABT_tool_thread_callback_fn)(ABT_thread, ABT_xstream, uint64_t event, ABT_tool_context context, void *user_arg)
int ABT_thread_get_specific(ABT_thread thread, ABT_key key, void **value) ABT_API_PUBLIC
Get a value associated with a work-unit-specific data key in a work unit.
ABT_sched_config_var ABT_sched_basic_freq
Predefined ABT_sched_config_var to configure the frequency for checking events of the basic scheduler...
int ABT_rwlock_create(ABT_rwlock *newrwlock) ABT_API_PUBLIC
Create a new readers-writer lock.
int ABT_thread_migrate_to_pool(ABT_thread thread, ABT_pool pool) ABT_API_PUBLIC
Request a migration of a work unit to a specific pool.
int ABT_sched_get_pools(ABT_sched sched, int max_pools, int idx, ABT_pool *pools) ABT_API_PUBLIC
Retrieve pools associated with a scheduler.
int ABT_xstream_equal(ABT_xstream xstream1, ABT_xstream xstream2, ABT_bool *result) ABT_API_PUBLIC
Compare two execution stream handles for equality.
struct ABT_rwlock_opaque * ABT_rwlock
Readers-writer lock handle type.
int ABT_task_is_migratable(ABT_task task, ABT_bool *flag) ABT_API_PUBLIC
Get the migratability of a work unit.
@ ABT_INFO_QUERY_KIND_WAIT_POLICY
int(* ABT_sched_free_fn)(ABT_sched)
int ABT_eventual_set(ABT_eventual eventual, void *value, int nbytes) ABT_API_PUBLIC
Signal an eventual.
ABT_pool_kind
Predefined pool type.
int ABT_mutex_get_attr(ABT_mutex mutex, ABT_mutex_attr *attr) ABT_API_PUBLIC
Get attributes of a mutex.
int ABT_sched_get_data(ABT_sched sched, void **data) ABT_API_PUBLIC
Retrieve a user value associated with a scheduler.
int ABT_thread_cancel(ABT_thread thread) ABT_API_PUBLIC
Send a cancellation request to a work unit.
int ABT_key_set(ABT_key key, void *value) ABT_API_PUBLIC
Associate a value with a work-unit-specific data key in the calling work unit.
int ABT_info_print_sched(FILE *fp, ABT_sched sched) ABT_API_PUBLIC
Print the information of a scheduler.
int ABT_pool_get_access(ABT_pool pool, ABT_pool_access *access) ABT_API_PUBLIC
Get an access type of a pool.
int ABT_sched_create(ABT_sched_def *def, int num_pools, ABT_pool *pools, ABT_sched_config config, ABT_sched *newsched) ABT_API_PUBLIC
Create a new scheduler with a scheduler definition.
@ ABT_INFO_QUERY_KIND_MAX_NUM_XSTREAMS
@ ABT_INFO_QUERY_KIND_DEFAULT_SCHED_SLEEP_NSEC
int ABT_sched_get_size(ABT_sched sched, size_t *size) ABT_API_PUBLIC
Obtain the sum of sizes of pools associated with a scheduler.
@ ABT_XSTREAM_STATE_TERMINATED
int ABT_mutex_attr_create(ABT_mutex_attr *newattr) ABT_API_PUBLIC
Create a new mutex attribute.
int ABT_self_get_xstream(ABT_xstream *xstream) ABT_API_PUBLIC
Get an execution stream that is running the calling work unit.
int ABT_self_get_thread_id(ABT_unit_id *id) ABT_API_PUBLIC
Get ID of the calling work unit.
int ABT_eventual_create(int nbytes, ABT_eventual *neweventual) ABT_API_PUBLIC
Create a new eventual.
int ABT_task_join(ABT_task task) ABT_API_PUBLIC
Wait for a work unit to terminate.
@ ABT_INFO_QUERY_KIND_ENABLED_LOG
int ABT_barrier_create(uint32_t num_waiters, ABT_barrier *newbarrier) ABT_API_PUBLIC
Create a new barrier.
int ABT_future_test(ABT_future future, ABT_bool *is_ready) ABT_API_PUBLIC
Check if a future is ready.
int ABT_unit_get_thread(ABT_unit unit, ABT_thread *thread) ABT_API_PUBLIC
Get a thread handle of the target work unit.
int ABT_barrier_wait(ABT_barrier barrier) ABT_API_PUBLIC
Wait on a barrier.
int ABT_mutex_free(ABT_mutex *mutex) ABT_API_PUBLIC
Free a mutex.
int ABT_cond_signal(ABT_cond cond) ABT_API_PUBLIC
Signal a condition.
@ ABT_INFO_QUERY_KIND_ENABLED_THREAD_CANCEL
int ABT_pool_get_id(ABT_pool pool, int *id) ABT_API_PUBLIC
Get ID of a pool.
int ABT_timer_stop_and_read(ABT_timer timer, double *secs) ABT_API_PUBLIC
Stop a timer and read an elapsed time of a timer.
int ABT_sched_config_create(ABT_sched_config *config,...) ABT_API_PUBLIC
Create a new scheduler configuration.
int ABT_barrier_get_num_waiters(ABT_barrier barrier, uint32_t *num_waiters) ABT_API_PUBLIC
Get the number of waiters of a barrier.
@ ABT_INFO_QUERY_KIND_ENABLED_SCHED_SLEEP
ABT_unit(* ABT_unit_create_from_thread_fn)(ABT_thread)
ABT_sched_config_type
A struct that sets and gets a scheduler configuration.
ABT_pool_access
Pool access type.
ABT_xstream_state
State of an execution stream.
int ABT_thread_get_attr(ABT_thread thread, ABT_thread_attr *attr) ABT_API_PUBLIC
Get attributes of a work unit.