ck_swlock: Load spin on write bit.

ck_pring
Samy Al Bahra 11 years ago
parent 4d7f4fff6d
commit 217f7a2f32

@ -130,7 +130,7 @@ ck_swlock_write_latch(ck_swlock_t *rw)
CK_SWLOCK_WRITER_MASK) == false) { CK_SWLOCK_WRITER_MASK) == false) {
do { do {
ck_pr_stall(); ck_pr_stall();
} while (ck_pr_load_32(&rw->value) != 0); } while (ck_pr_load_32(&rw->value) != CK_SWLOCK_WRITER_BIT);
} }
ck_pr_fence_acquire(); ck_pr_fence_acquire();

Loading…
Cancel
Save