Lines Matching refs:index
40 unsigned index;
46 index = ws->ordered_cur + ws->ordered_num_used;
47 if (index >= team->nthreads)
48 index -= team->nthreads;
49 ws->ordered_team_ids[index] = thr->ts.team_id;
106 unsigned index, next_id;
129 index = ws->ordered_cur + ws->ordered_num_used;
130 if (index >= team->nthreads)
131 index -= team->nthreads;
132 ws->ordered_team_ids[index] = thr->ts.team_id;
135 index = ws->ordered_cur + 1;
136 if (index == team->nthreads)
137 index = 0;
138 ws->ordered_cur = index;
140 next_id = ws->ordered_team_ids[index];