29 static const char *err_str[] = {
"ABT_SUCCESS",
30 "ABT_ERR_UNINITIALIZED",
33 "ABT_ERR_INV_XSTREAM",
34 "ABT_ERR_INV_XSTREAM_RANK",
35 "ABT_ERR_INV_XSTREAM_BARRIER",
37 "ABT_ERR_INV_SCHED_KIND",
38 "ABT_ERR_INV_SCHED_PREDEF",
39 "ABT_ERR_INV_SCHED_TYPE",
40 "ABT_ERR_INV_SCHED_CONFIG",
42 "ABT_ERR_INV_POOL_KIND",
43 "ABT_ERR_INV_POOL_ACCESS",
46 "ABT_ERR_INV_THREAD_ATTR",
50 "ABT_ERR_INV_MUTEX_ATTR",
53 "ABT_ERR_INV_EVENTUAL",
55 "ABT_ERR_INV_BARRIER",
57 "ABT_ERR_INV_QUERY_KIND",
59 "ABT_ERR_XSTREAM_STATE",
60 "ABT_ERR_XSTREAM_BARRIER",
62 "ABT_ERR_SCHED_CONFIG",
69 "ABT_ERR_MUTEX_LOCKED",
71 "ABT_ERR_COND_TIMEDOUT",
78 "ABT_ERR_MIGRATION_TARGET",
79 "ABT_ERR_MIGRATION_NA",
80 "ABT_ERR_MISSING_JOIN",
81 "ABT_ERR_FEATURE_NA" };
89 *len = strlen(err_str[err]);
#define ABTU_strcpy(d, s)
#define HANDLE_ERROR_FUNC_WITH_CODE(n)
int ABT_error_get_str(int err, char *str, size_t *len)
Get the string of error code and its length.
#define ABT_ERR_FEATURE_NA