From 24d26965d1a28039062ba3bcf9433b623f3d2c5e Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Mon, 27 Feb 2017 15:50:14 -0500 Subject: [PATCH] regressions/ck_epoch_section_2: Force exit after timer. --- regressions/ck_epoch/validate/ck_epoch_section_2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/regressions/ck_epoch/validate/ck_epoch_section_2.c b/regressions/ck_epoch/validate/ck_epoch_section_2.c index ca183b1..aed3661 100644 --- a/regressions/ck_epoch/validate/ck_epoch_section_2.c +++ b/regressions/ck_epoch/validate/ck_epoch_section_2.c @@ -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, §ion[1]);