From fe7e5ac5b1ce077c538b6db0c3fa6d4d1b5d6266 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 11 May 2013 15:47:28 -0400 Subject: [PATCH] ck_hp_stack: Migrate to ck_pr_fence_X_Y functions. --- include/ck_hp_stack.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ck_hp_stack.h b/include/ck_hp_stack.h index 2a7856c..7ac8821 100644 --- a/include/ck_hp_stack.h +++ b/include/ck_hp_stack.h @@ -62,7 +62,7 @@ ck_hp_stack_pop_mpmc(ck_hp_record_t *record, struct ck_stack *target) return NULL; ck_hp_set(record, 0, entry); - ck_pr_fence_strict_memory(); + ck_pr_fence_store_load(); } while (entry != ck_pr_load_ptr(&target->head)); while (ck_pr_cas_ptr_value(&target->head, entry, entry->next, &entry) == false) { @@ -70,11 +70,11 @@ ck_hp_stack_pop_mpmc(ck_hp_record_t *record, struct ck_stack *target) return NULL; ck_hp_set(record, 0, entry); - ck_pr_fence_strict_memory(); + ck_pr_fence_store_load(); update = ck_pr_load_ptr(&target->head); while (entry != update) { ck_hp_set(record, 0, update); - ck_pr_fence_strict_memory(); + ck_pr_fence_store_load(); entry = update; update = ck_pr_load_ptr(&target->head); if (update == NULL) @@ -95,7 +95,7 @@ ck_hp_stack_trypop_mpmc(ck_hp_record_t *record, struct ck_stack *target, struct return false; ck_hp_set(record, 0, entry); - ck_pr_fence_strict_memory(); + ck_pr_fence_store_load(); if (entry != ck_pr_load_ptr(&target->head)) goto leave;