From eec4093cdb06ea49f6ae9149c5624dbd694e8968 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Thu, 6 Sep 2012 07:56:26 -0400 Subject: [PATCH] ck_epoch: Goal represents a full epoch generation in barrier. --- src/ck_epoch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ck_epoch.c b/src/ck_epoch.c index 13262b5..5fdac7e 100644 --- a/src/ck_epoch.c +++ b/src/ck_epoch.c @@ -311,7 +311,7 @@ ck_epoch_barrier(struct ck_epoch *global, struct ck_epoch_record *record) */ if (ck_pr_cas_uint_value(&global->epoch, delta, delta + 1, &delta) == true) { delta = delta + 1; - } else if ((goal > epoch) & (delta > goal)) { + } else if ((goal > epoch) & (delta >= goal)) { /* * Right now, epoch overflow is handled as an edge case. If * we have already observed an epoch generation, then we can