31 ABTI_pool *p_pool = ABTI_pool_get_ptr(pool);
32 ABTI_CHECK_NULL_POOL_PTR(p_pool);
34 ABTI_unit_set_associated_pool(unit, p_pool);
48 void ABTI_unit_set_associated_pool(
ABT_unit unit, ABTI_pool *p_pool)
53 ABT_thread thread = p_pool->u_get_thread(unit);
54 ABTI_thread *p_thread = ABTI_thread_get_ptr(thread);
55 p_thread->p_pool = p_pool;
59 ABT_task task = p_pool->u_get_task(unit);
60 ABTI_task *p_task = ABTI_task_get_ptr(task);
61 p_task->p_pool = p_pool;
struct ABT_unit_opaque * ABT_unit
struct ABT_task_opaque * ABT_task
struct ABT_pool_opaque * ABT_pool
struct ABT_thread_opaque * ABT_thread
#define HANDLE_ERROR_FUNC_WITH_CODE(n)
int ABT_unit_set_associated_pool(ABT_unit unit, ABT_pool pool)
Set the associated pool for the target work unit.