From 6ccfb84d81ac34742d82be6a0e5c1a281c3fbfc9 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Thu, 17 Apr 2014 16:17:29 -0400 Subject: [PATCH] Revert "ck_rwlock: Use sub for unlatch operation." This reverts commit b7c3c8a43d95e38d4bb942d9113aa9c9e24f0f23. --- include/ck_rwlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_rwlock.h b/include/ck_rwlock.h index 7b6706b..f6cc6fd 100644 --- a/include/ck_rwlock.h +++ b/include/ck_rwlock.h @@ -128,7 +128,7 @@ CK_CC_INLINE static void ck_rwlock_write_unlatch(ck_rwlock_t *rw) { - ck_pr_sub_32(&rw->n_readers, 1UL << CK_RWLOCK_LATCH_SHIFT); + ck_pr_add_32(&rw->n_readers, 1UL << CK_RWLOCK_LATCH_SHIFT); return; }