6 #ifndef ABTI_THREAD_ATTR_H_INCLUDED 7 #define ABTI_THREAD_ATTR_H_INCLUDED 22 static inline ABTI_thread_attr *ABTI_thread_attr_get_ptr(
ABT_thread_attr attr)
24 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK 25 ABTI_thread_attr *p_attr;
29 p_attr = (ABTI_thread_attr *)attr;
33 return (ABTI_thread_attr *)attr;
49 ABTI_thread_attr_get_handle(ABTI_thread_attr *p_attr)
51 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK 64 #ifndef ABT_CONFIG_DISABLE_MIGRATION 65 static inline void ABTI_thread_attr_init_migration(ABTI_thread_attr *p_attr,
68 p_attr->migratable = migratable;
70 p_attr->p_cb_arg = NULL;
74 static inline void ABTI_thread_attr_init(ABTI_thread_attr *p_attr,
75 void *p_stack,
size_t stacksize,
76 ABTI_stack_type stacktype,
79 p_attr->p_stack = p_stack;
80 p_attr->stacksize = stacksize;
81 p_attr->stacktype = stacktype;
82 #ifndef ABT_CONFIG_DISABLE_MIGRATION 83 ABTI_thread_attr_init_migration(p_attr, migratable);
87 static inline void ABTI_thread_attr_copy(ABTI_thread_attr *p_dest,
88 ABTI_thread_attr *p_src)
90 memcpy(p_dest, p_src,
sizeof(ABTI_thread_attr));
struct ABT_thread_attr_opaque * ABT_thread_attr
#define ABT_THREAD_ATTR_NULL