Lines Matching refs:ws
42 struct gomp_work_share *ws = thr->ts.work_share;
49 index = ws->ordered_cur + ws->ordered_num_used;
52 ws->ordered_team_ids[index] = thr->ts.team_id;
57 if (ws->ordered_num_used++ == 0)
73 struct gomp_work_share *ws = thr->ts.work_share;
81 ws->ordered_owner = -1;
84 if (--ws->ordered_num_used > 0)
86 unsigned next = ws->ordered_cur + 1;
89 ws->ordered_cur = next;
91 next_id = ws->ordered_team_ids[next];
108 struct gomp_work_share *ws = thr->ts.work_share;
116 ws->ordered_owner = -1;
119 if (ws->ordered_num_used == 1)
130 if (ws->ordered_num_used < team->nthreads)
132 index = ws->ordered_cur + ws->ordered_num_used;
135 ws->ordered_team_ids[index] = thr->ts.team_id;
138 index = ws->ordered_cur + 1;
141 ws->ordered_cur = index;
143 next_id = ws->ordered_team_ids[index];
174 struct gomp_work_share *ws = thr->ts.work_share;
180 ws->ordered_owner = -1;
185 ws->ordered_team_ids[0] = id;
198 struct gomp_work_share *ws = thr->ts.work_share;
206 ws->lock. The only presumed race condition is with the previous
215 if (ws->ordered_owner != thr->ts.team_id)
218 ws->ordered_owner = thr->ts.team_id;