ARGOBOTS
dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
|
Go to the documentation of this file.
6 #ifndef ABTD_H_INCLUDED
7 #define ABTD_H_INCLUDED
26 void *(*thread_f)(
void *);
33 #ifdef HAVE_PTHREAD_BARRIER_INIT
44 #define ABTD_XSTREAM_LOCAL __thread
76 int max_cpuids,
int *cpuids,
101 #if defined(ABT_CONFIG_USE_CLOCK_GETTIME)
105 #elif defined(ABT_CONFIG_USE_MACH_ABSOLUTE_TIME)
106 #include <mach/mach_time.h>
109 #elif defined(ABT_CONFIG_USE_GETTIMEOFDAY)
110 #include <sys/time.h>
ABTD_xstream_context_state
struct timespec ABTD_time
int ABT_bool
Boolean type.
@ ABTD_XSTREAM_CONTEXT_STATE_WAITING
ABTU_ret_err int ABTD_affinity_cpuset_apply(ABTD_xstream_context *p_ctx, const ABTD_affinity_cpuset *p_cpuset)
@ ABTD_XSTREAM_CONTEXT_STATE_RUNNING
void ABTD_xstream_context_print(ABTD_xstream_context *p_ctx, FILE *p_os, int indent)
void ABTD_xstream_context_free(ABTD_xstream_context *p_ctx)
struct ABTD_affinity_cpuset ABTD_affinity_cpuset
pthread_mutex_t ABTD_xstream_mutex
@ ABTD_XSTREAM_CONTEXT_STATE_REQ_JOIN
pthread_mutex_t state_lock
struct ABTD_xstream_context ABTD_xstream_context
void ABTD_xstream_context_revive(ABTD_xstream_context *p_ctx)
ABTU_ret_err int ABTD_xstream_context_create(void *(*f_xstream)(void *), void *p_arg, ABTD_xstream_context *p_ctx)
@ ABTD_XSTREAM_CONTEXT_STATE_REQ_TERMINATE
ABT_bool ABTD_env_get_print_config(void)
size_t ABTD_env_get_sys_pagesize(void)
void ABTD_xstream_context_set_self(ABTD_xstream_context *p_ctx)
ABT_bool ABTD_env_get_use_debug(void)
size_t ABTD_env_get_sched_stacksize(void)
uint32_t ABTD_env_get_sched_event_freq(void)
pthread_cond_t state_cond
pthread_barrier_t ABTD_xstream_barrier
void ABTD_time_init(void)
ABTU_ret_err int ABTD_affinity_list_create(const char *affinity_str, ABTD_affinity_list **pp_affinity_list)
size_t ABTD_env_get_thread_stacksize(void)
void ABTD_env_init(ABTI_global *p_global)
void ABTD_affinity_finalize(ABTI_global *p_global)
@ ABTD_XSTREAM_CONTEXT_STATE_UNINIT
ABT_bool ABTD_env_get_use_logging(void)
ABTD_xstream_context_state state
double ABTD_time_read_sec(ABTD_time *p_time)
uint32_t ABTD_env_key_table_size(void)
void ABTD_time_get(ABTD_time *p_time)
int ABTD_affinity_cpuset_apply_default(ABTD_xstream_context *p_ctx, int rank)
struct ABTD_affinity_id_list ABTD_affinity_id_list
ABTU_ret_err int ABTD_affinity_cpuset_read(ABTD_xstream_context *p_ctx, int max_cpuids, int *cpuids, int *p_num_cpuids)
void ABTD_xstream_context_join(ABTD_xstream_context *p_ctx)
int ABTD_env_get_max_xstreams(void)
void ABTD_affinity_init(ABTI_global *p_global, const char *affinity_str)
void ABTD_affinity_list_free(ABTD_affinity_list *p_list)
uint64_t ABTD_env_get_sched_sleep_nsec(void)
void ABTD_affinity_cpuset_destroy(ABTD_affinity_cpuset *p_cpuset)
ABT_bool ABTD_env_get_stack_guard_mprotect(ABT_bool *is_strict)
struct ABTD_affinity_list ABTD_affinity_list
ABTD_affinity_id_list ** p_id_lists