29 ABTI_pool *p_pool = ABTI_pool_get_ptr(pool);
30 ABTI_CHECK_NULL_POOL_PTR(p_pool);
32 ABTI_unit_set_associated_pool(unit, p_pool);
40 void ABTI_unit_set_associated_pool(
ABT_unit unit, ABTI_pool *p_pool)
45 ABT_thread thread = p_pool->u_get_thread(unit);
46 ABTI_ythread *p_thread = ABTI_ythread_get_ptr(thread);
47 p_thread->thread.p_pool = p_pool;
51 ABT_task task = p_pool->u_get_task(unit);
52 ABTI_thread *p_task = ABTI_thread_get_ptr(task);
53 p_task->p_pool = p_pool;
struct ABT_unit_opaque * ABT_unit
struct ABT_thread_opaque * ABT_task
struct ABT_pool_opaque * ABT_pool
struct ABT_thread_opaque * ABT_thread
int ABT_unit_set_associated_pool(ABT_unit unit, ABT_pool pool) ABT_API_PUBLIC
Set the associated pool for the target work unit.