Revert "ck_rwlock: Additional reorganization."

This reverts commit 56de32fffd.
ck_pring
Samy Al Bahra 11 years ago
parent 2a701163eb
commit d3a7adaf8c

@ -71,15 +71,6 @@ ck_rwlock_write_lock(ck_rwlock_t *rw)
return;
}
CK_CC_INLINE static void
ck_rwlock_write_unlock(ck_rwlock_t *rw)
{
ck_pr_fence_release();
ck_pr_store_32(&rw->writer, 0);
return;
}
CK_CC_INLINE static bool
ck_rwlock_write_trylock(ck_rwlock_t *rw)
{
@ -97,6 +88,15 @@ ck_rwlock_write_trylock(ck_rwlock_t *rw)
return true;
}
CK_CC_INLINE static void
ck_rwlock_write_unlock(ck_rwlock_t *rw)
{
ck_pr_fence_release();
ck_pr_store_32(&rw->writer, 0);
return;
}
CK_CC_INLINE static bool
ck_rwlock_locked_writer(ck_rwlock_t *rw)
{

Loading…
Cancel
Save