Revert "ck_rwlock: Use sub for unlatch operation."

This reverts commit b7c3c8a43d.
ck_pring
Samy Al Bahra 11 years ago
parent ed476a617c
commit 6ccfb84d81

@ -128,7 +128,7 @@ CK_CC_INLINE static void
ck_rwlock_write_unlatch(ck_rwlock_t *rw) 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; return;
} }

Loading…
Cancel
Save