Skip to content

Commit

Permalink
regressions/ck_epoch_section_2: Force exit after timer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samy Al Bahra committed Feb 27, 2017
1 parent 343246d commit 24d2696
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion regressions/ck_epoch/validate/ck_epoch_section_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ read_thread(void *unused CK_CC_UNUSED)
}

while ((ck_pr_load_uint(&epoch.epoch) & 1) ==
section[0].bucket)
section[0].bucket) {
if (ck_pr_load_uint(&leave) == 1)
break;

ck_pr_stall();
}
}

ck_epoch_begin(record, &section[1]);
Expand Down

0 comments on commit 24d2696

Please sign in to comment.