regressions/ck_hp: Switch to using ck_hp_set_fence.

ck_pring
Samy Al Bahra 10 years ago
parent a26c891f1a
commit 6e49af143f

@ -121,14 +121,14 @@ stack_pop_mpmc(ck_hp_record_t *record, struct stack *target)
if (entry == NULL)
return (NULL);
ck_hp_set(record, 0, entry);
ck_hp_set_fence(record, 0, entry);
} while (entry != ck_pr_load_ptr(&target->head));
while (ck_pr_cas_ptr_value(&target->head, entry, entry->next, &entry) == false) {
if (ck_pr_load_ptr(&entry) == NULL)
break;
ck_hp_set(record, 0, entry);
ck_hp_set_fence(record, 0, entry);
if (entry != ck_pr_load_ptr(&target->head))
continue;

Loading…
Cancel
Save