ck_swlock: Fix-up TATAS loop.

ck_pring
Samy Al Bahra 11 years ago
parent a1daff18ea
commit 6fe2bba224

@ -297,7 +297,7 @@ ck_swlock_recursive_write_latch(ck_swlock_recursive_t *rw)
while (ck_pr_cas_32(&rw->rw.n_readers, 0, CK_SWLOCK_LATCH_BIT) == false) { while (ck_pr_cas_32(&rw->rw.n_readers, 0, CK_SWLOCK_LATCH_BIT) == false) {
do { do {
ck_pr_stall(); ck_pr_stall();
} while (ck_pr_load_uint(&rw->n_readers) != 0); } while (ck_pr_load_uint(&rw->rw.n_readers) != 0);
} }
rw->wc++; rw->wc++;

Loading…
Cancel
Save