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