diff --git a/include/spinlock/clh.h b/include/spinlock/clh.h index b066244..768e771 100644 --- a/include/spinlock/clh.h +++ b/include/spinlock/clh.h @@ -82,7 +82,7 @@ ck_spinlock_clh_lock(struct ck_spinlock_clh **queue, struct ck_spinlock_clh *thr while (ck_pr_load_uint(&previous->wait) == true) ck_pr_stall(); - ck_pr_fence_load(); + ck_pr_fence_acquire(); return; } diff --git a/include/spinlock/hclh.h b/include/spinlock/hclh.h index 0838edb..3e94072 100644 --- a/include/spinlock/hclh.h +++ b/include/spinlock/hclh.h @@ -110,7 +110,7 @@ ck_spinlock_hclh_lock(struct ck_spinlock_hclh **glob_queue, while (ck_pr_load_uint(&previous->wait) == true) ck_pr_stall(); - ck_pr_fence_load(); + ck_pr_fence_acquire(); return; }