#include <assert.h>
#include <abt_config.h>
Go to the source code of this file.
◆ ABTI_ASSERT
#define ABTI_ASSERT |
( |
|
cond | ) |
|
Value: do { \
assert(cond); \
} \
} while (0)
Definition at line 12 of file abti_error.h.
◆ ABTI_CHECK_ERROR
#define ABTI_CHECK_ERROR |
( |
|
abt_errno | ) |
|
Value: do { \
int abt_errno_ = (abt_errno); \
HANDLE_ERROR_FUNC_WITH_CODE(abt_errno_); \
return abt_errno_; \
} \
} while (0)
Definition at line 120 of file abti_error.h.
◆ ABTI_CHECK_NULL_BARRIER_PTR
#define ABTI_CHECK_NULL_BARRIER_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_COND_PTR
#define ABTI_CHECK_NULL_COND_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_EVENTUAL_PTR
#define ABTI_CHECK_NULL_EVENTUAL_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_FUTURE_PTR
#define ABTI_CHECK_NULL_FUTURE_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_KEY_PTR
#define ABTI_CHECK_NULL_KEY_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_MUTEX_ATTR_PTR
#define ABTI_CHECK_NULL_MUTEX_ATTR_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_MUTEX_PTR
#define ABTI_CHECK_NULL_MUTEX_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_POOL_PTR
#define ABTI_CHECK_NULL_POOL_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_RWLOCK_PTR
#define ABTI_CHECK_NULL_RWLOCK_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_SCHED_CONFIG_PTR
#define ABTI_CHECK_NULL_SCHED_CONFIG_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_SCHED_PTR
#define ABTI_CHECK_NULL_SCHED_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_TASK_PTR
#define ABTI_CHECK_NULL_TASK_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_THREAD_ATTR_PTR
#define ABTI_CHECK_NULL_THREAD_ATTR_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_THREAD_PTR
#define ABTI_CHECK_NULL_THREAD_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_TIMER_PTR
#define ABTI_CHECK_NULL_TIMER_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_TOOL_CONTEXT_PTR
#define ABTI_CHECK_NULL_TOOL_CONTEXT_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_XSTREAM_BARRIER_PTR
#define ABTI_CHECK_NULL_XSTREAM_BARRIER_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_XSTREAM_PTR
#define ABTI_CHECK_NULL_XSTREAM_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_NULL_YTHREAD_PTR
#define ABTI_CHECK_NULL_YTHREAD_PTR |
( |
|
p | ) |
|
◆ ABTI_CHECK_TRUE
#define ABTI_CHECK_TRUE |
( |
|
cond, |
|
|
|
abt_errno |
|
) |
| |
Value: do { \
int abt_errno_ = (abt_errno); \
HANDLE_ERROR_FUNC_WITH_CODE(abt_errno_); \
return abt_errno_; \
} \
} while (0)
Definition at line 130 of file abti_error.h.
◆ ABTI_CHECK_TRUE_MSG
#define ABTI_CHECK_TRUE_MSG |
( |
|
cond, |
|
|
|
abt_errno, |
|
|
|
msg |
|
) |
| |
Value: do { \
HANDLE_ERROR(msg); \
return (abt_errno); \
} \
} while (0)
Definition at line 151 of file abti_error.h.
◆ ABTI_CHECK_YIELDABLE
#define ABTI_CHECK_YIELDABLE |
( |
|
p_thread, |
|
|
|
pp_ythread, |
|
|
|
abt_errno |
|
) |
| |
Value: do { \
ABTI_thread *p_tmp = (p_thread); \
int abt_errno_ = (abt_errno); \
HANDLE_ERROR_FUNC_WITH_CODE(abt_errno_); \
return abt_errno_; \
} \
} while (0)
Definition at line 139 of file abti_error.h.
◆ ABTI_HANDLE_ERROR
#define ABTI_HANDLE_ERROR |
( |
|
n | ) |
|
Value: do { \
HANDLE_ERROR_FUNC_WITH_CODE(n); \
return n; \
} while (0)
Definition at line 114 of file abti_error.h.
◆ ABTI_IS_PRINT_ABT_ERRNO_ENABLED
#define ABTI_IS_PRINT_ABT_ERRNO_ENABLED 0 |
◆ ABTI_SETUP_GLOBAL
#define ABTI_SETUP_GLOBAL |
( |
|
pp_global | ) |
|
Value: do { \
} \
ABTI_global **pp_global_tmp = (pp_global); \
if (pp_global_tmp) { \
*pp_global_tmp = p_global_tmp; \
} \
} while (0)
Definition at line 59 of file abti_error.h.
◆ ABTI_SETUP_LOCAL_XSTREAM
#define ABTI_SETUP_LOCAL_XSTREAM |
( |
|
pp_local_xstream | ) |
|
Value: do { \
ABTI_xstream *p_local_xstream_tmp = \
} \
ABTI_xstream **pp_local_xstream_tmp = (pp_local_xstream); \
if (pp_local_xstream_tmp) { \
*pp_local_xstream_tmp = p_local_xstream_tmp; \
} \
} while (0)
Definition at line 73 of file abti_error.h.
◆ ABTI_SETUP_LOCAL_YTHREAD
#define ABTI_SETUP_LOCAL_YTHREAD |
( |
|
pp_local_xstream, |
|
|
|
pp_ythread |
|
) |
| |
Value: do { \
ABTI_xstream *p_local_xstream_tmp = \
} \
ABTI_xstream **pp_local_xstream_tmp = (pp_local_xstream); \
if (pp_local_xstream_tmp) { \
*pp_local_xstream_tmp = p_local_xstream_tmp; \
} \
ABTI_thread *p_thread_tmp = p_local_xstream_tmp->p_thread; \
} \
ABTI_ythread **pp_ythread_tmp = (pp_ythread); \
if (pp_ythread_tmp) { \
} \
} while (0)
Definition at line 88 of file abti_error.h.
◆ ABTI_STATIC_ASSERT
#define ABTI_STATIC_ASSERT |
( |
|
cond | ) |
|
Value: do { \
((void)sizeof(char[2 * !!(cond)-1])); \
} while (0)
Definition at line 19 of file abti_error.h.
◆ HANDLE_ERROR
#define HANDLE_ERROR |
( |
|
msg | ) |
|
Value: do { \
fprintf(stderr, "[%s:%d] %s\n", __FILE__, __LINE__, msg); \
} \
} while (0)
Definition at line 37 of file abti_error.h.
◆ HANDLE_ERROR_FUNC_WITH_CODE
#define HANDLE_ERROR_FUNC_WITH_CODE |
( |
|
n | ) |
|
Value: do { \
fprintf(stderr, "[%s:%d] %s: %d\n", __FILE__, __LINE__, __func__, \
n); \
} \
} while (0)
Definition at line 51 of file abti_error.h.
◆ HANDLE_ERROR_WITH_CODE
#define HANDLE_ERROR_WITH_CODE |
( |
|
msg, |
|
|
|
n |
|
) |
| |
Value: do { \
fprintf(stderr, "[%s:%d] %s: %d\n", __FILE__, __LINE__, msg, n); \
} \
} while (0)
Definition at line 44 of file abti_error.h.
◆ HANDLE_WARNING
#define HANDLE_WARNING |
( |
|
msg | ) |
|
Value: do { \
fprintf(stderr, "[%s:%d] %s\n", __FILE__, __LINE__, msg); \
} \
} while (0)
Definition at line 30 of file abti_error.h.
#define ABT_ERR_INV_SCHED_CONFIG
Error code: invalid scheduler configuration.
#define ABT_ERR_INV_THREAD
Error code: invalid work unit.
#define ABT_ERR_UNINITIALIZED
Error code: Argobots it not initialized.
#define ABT_ERR_INV_XSTREAM
Error code: invalid execution stream.
#define ABT_ERR_INV_RWLOCK
Error code: invalid readers-writer lock.
#define ABTI_THREAD_TYPE_YIELDABLE
static ABTI_ythread * ABTI_thread_get_ythread(ABTI_thread *p_thread)
#define ABTI_IS_ERROR_CHECK_ENABLED
#define ABT_ERR_INV_MUTEX
Error code: invalid mutex.
#define ABT_ERR_INV_KEY
Error code: invalid work-unit-specific data key.
#define ABT_ERR_INV_SCHED
Error code: invalid scheduler.
#define ABT_ERR_INV_COND
Error code: invalid condition variable.
#define ABT_ERR_INV_BARRIER
Error code: invalid barrier.
#define ABT_ERR_INV_FUTURE
Error code: invalid future.
#define ABT_ERR_INV_THREAD_ATTR
Error code: invalid ULT attribute.
static ABTI_local * ABTI_local_get_local(void)
#define ABT_ERR_INV_TASK
Error code: invalid work unit.
#define ABT_SUCCESS
Error code: the routine returns successfully.
#define ABT_ERR_INV_TIMER
Error code: invalid timer.
#define ABTI_IS_EXT_THREAD_ENABLED
#define ABTU_unlikely(cond)
#define ABT_ERR_INV_POOL
Error code: invalid pool.
#define ABT_ERR_INV_MUTEX_ATTR
Error code: invalid mutex attribute.
#define ABT_ERR_INV_EVENTUAL
Error code: invalid eventual.
static ABTI_global * ABTI_global_get_global_or_null(void)
#define ABT_ERR_INV_XSTREAM_BARRIER
Error code: invalid execution stream barrier.
#define ABTI_IS_PRINT_ABT_ERRNO_ENABLED
#define ABT_ERR_INV_TOOL_CONTEXT
Error code: invalid tool context.