From 44689f7e69cd3c89cddf0e922522760eed9aac45 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Thu, 2 Jan 2014 08:59:04 -0500 Subject: [PATCH] ck_bytelock: Migrate to acquire / release. --- include/ck_bytelock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ck_bytelock.h b/include/ck_bytelock.h index f457d7e..a4d4ad8 100644 --- a/include/ck_bytelock.h +++ b/include/ck_bytelock.h @@ -114,7 +114,7 @@ CK_CC_INLINE static void ck_bytelock_write_unlock(struct ck_bytelock *bytelock) { - ck_pr_fence_memory(); + ck_pr_fence_release(); ck_pr_store_uint(&bytelock->owner, 0); return; } @@ -173,7 +173,7 @@ CK_CC_INLINE static void ck_bytelock_read_unlock(struct ck_bytelock *bytelock, unsigned int slot) { - ck_pr_fence_memory(); + ck_pr_fence_release(); slot -= 1; if (slot > sizeof bytelock->readers)