Lines Matching refs:round
35 * assigned roles to perform for each round of the barrier. Winners
36 * move on to the next round, while losers spin in their current rounds
37 * on their own flags. During the last round, the champion of the tournament
113 int round = 1;
118 for (;; ++round) {
119 switch (rounds[state->vpid][round].role) {
127 while (ck_pr_load_uint(&rounds[state->vpid][round].flag) != state->sense)
130 ck_pr_store_uint(rounds[state->vpid][round].opponent, state->sense);
140 ck_pr_store_uint(rounds[state->vpid][round].opponent, state->sense);
141 while (ck_pr_load_uint(&rounds[state->vpid][round].flag) != state->sense)
148 * continue to the next round of the tournament.
150 while (ck_pr_load_uint(&rounds[state->vpid][round].flag) != state->sense)
157 for (round -= 1 ;; --round) {
158 switch (rounds[state->vpid][round].role) {
175 ck_pr_store_uint(rounds[state->vpid][round].opponent, state->sense);