regressions/ck_epoch_section_2: Force exit after timer.

ck_pring 0.6.0
Samy Al Bahra 8 years ago
parent 343246d377
commit 24d26965d1

@ -101,9 +101,13 @@ read_thread(void *unused CK_CC_UNUSED)
} }
while ((ck_pr_load_uint(&epoch.epoch) & 1) == 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_pr_stall();
} }
}
ck_epoch_begin(record, &section[1]); ck_epoch_begin(record, &section[1]);

Loading…
Cancel
Save