6 #ifndef ABTI_TASK_H_INCLUDED
7 #define ABTI_TASK_H_INCLUDED
11 static inline ABTI_task *ABTI_task_get_ptr(
ABT_task task)
13 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
18 p_task = (ABTI_task *)task;
22 return (ABTI_task *)task;
26 static inline ABT_task ABTI_task_get_handle(ABTI_task *p_task)
28 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
41 static inline void ABTI_task_set_request(ABTI_task *p_task, uint32_t req)
43 ABTD_atomic_fetch_or_uint32(&p_task->unit_def.request, req);
46 static inline void ABTI_task_unset_request(ABTI_task *p_task, uint32_t req)
48 ABTD_atomic_fetch_and_uint32(&p_task->unit_def.request, ~req);
struct ABT_task_opaque * ABT_task