Lines Matching refs:task_stack
57 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; in __kmp_trace_task_stack() local
58 kmp_taskdata_t **stack_top = task_stack->ts_top; in __kmp_trace_task_stack()
59 kmp_int32 entries = task_stack->ts_entries; in __kmp_trace_task_stack()
66 location, gtid, entries, task_stack->ts_first_block, stack_top)); in __kmp_trace_task_stack()
72 KMP_DEBUG_ASSERT(stack_top != &task_stack->ts_first_block.sb_block[0]); in __kmp_trace_task_stack()
95 KMP_DEBUG_ASSERT(stack_top == &task_stack->ts_first_block.sb_block[0]); in __kmp_trace_task_stack()
110 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; in __kmp_init_task_stack() local
114 first_block = &task_stack->ts_first_block; in __kmp_init_task_stack()
115 task_stack->ts_top = (kmp_taskdata_t **)first_block; in __kmp_init_task_stack()
120 task_stack->ts_entries = TASK_STACK_EMPTY; in __kmp_init_task_stack()
131 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; in __kmp_free_task_stack() local
132 kmp_stack_block_t *stack_block = &task_stack->ts_first_block; in __kmp_free_task_stack()
134 KMP_DEBUG_ASSERT(task_stack->ts_entries == TASK_STACK_EMPTY); in __kmp_free_task_stack()
141 if (stack_block != &task_stack->ts_first_block) { in __kmp_free_task_stack()
148 task_stack->ts_entries = 0; in __kmp_free_task_stack()
149 task_stack->ts_top = NULL; in __kmp_free_task_stack()
163 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; in __kmp_push_task_stack() local
170 KMP_DEBUG_ASSERT(task_stack->ts_top != NULL); in __kmp_push_task_stack()
176 *(task_stack->ts_top) = tied_task; in __kmp_push_task_stack()
179 task_stack->ts_top++; in __kmp_push_task_stack()
180 task_stack->ts_entries++; in __kmp_push_task_stack()
182 if (task_stack->ts_entries & TASK_STACK_INDEX_MASK == 0) { in __kmp_push_task_stack()
185 (kmp_stack_block_t *)(task_stack->ts_top - TASK_STACK_BLOCK_SIZE); in __kmp_push_task_stack()
190 task_stack->ts_top = &stack_block->sb_next->sb_block[0]; in __kmp_push_task_stack()
195 task_stack->ts_top = &new_block->sb_block[0]; in __kmp_push_task_stack()
222 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; in __kmp_pop_task_stack() local
230 KMP_DEBUG_ASSERT(task_stack->ts_top != NULL); in __kmp_pop_task_stack()
231 KMP_DEBUG_ASSERT(task_stack->ts_entries > 0); in __kmp_pop_task_stack()
237 if (task_stack->ts_entries & TASK_STACK_INDEX_MASK == 0) { in __kmp_pop_task_stack()
238 kmp_stack_block_t *stack_block = (kmp_stack_block_t *)(task_stack->ts_top); in __kmp_pop_task_stack()
241 task_stack->ts_top = &stack_block->sb_block[TASK_STACK_BLOCK_SIZE]; in __kmp_pop_task_stack()
245 task_stack->ts_top--; in __kmp_pop_task_stack()
246 task_stack->ts_entries--; in __kmp_pop_task_stack()
248 tied_task = *(task_stack->ts_top); in __kmp_pop_task_stack()