Lines Matching defs:task_stack

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