ck_epoch: Elaborate on ck_epoch_register load fence.

ck_pring
Samy Al Bahra 12 years ago
parent 4492325ccc
commit 58af5c3072

@ -162,6 +162,7 @@ ck_epoch_recycle(struct ck_epoch *global)
record = ck_epoch_record_container(cursor); record = ck_epoch_record_container(cursor);
if (ck_pr_load_uint(&record->state) == CK_EPOCH_STATE_FREE) { if (ck_pr_load_uint(&record->state) == CK_EPOCH_STATE_FREE) {
/* Serialize with respect to deferral list clean-up. */
ck_pr_fence_load(); ck_pr_fence_load();
state = ck_pr_fas_uint(&record->state, CK_EPOCH_STATE_USED); state = ck_pr_fas_uint(&record->state, CK_EPOCH_STATE_USED);
if (state == CK_EPOCH_STATE_FREE) { if (state == CK_EPOCH_STATE_FREE) {

Loading…
Cancel
Save