ck_epoch: Goal represents a full epoch generation in barrier.

ck_pring
Samy Al Bahra 13 years ago
parent 81ba687e14
commit eec4093cdb

@ -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) { if (ck_pr_cas_uint_value(&global->epoch, delta, delta + 1, &delta) == true) {
delta = delta + 1; 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 * Right now, epoch overflow is handled as an edge case. If
* we have already observed an epoch generation, then we can * we have already observed an epoch generation, then we can

Loading…
Cancel
Save