whitespace/ck_swlock: Fix typo in comment.

ck_pring
Samy Al Bahra 10 years ago
parent b1acbf1b0a
commit 8b20998ecd

@ -118,7 +118,7 @@ ck_swlock_write_latch(ck_swlock_t *rw)
/* Publish intent to acquire lock. */ /* Publish intent to acquire lock. */
ck_pr_or_32(&rw->value, CK_SWLOCK_WRITER_BIT); ck_pr_or_32(&rw->value, CK_SWLOCK_WRITER_BIT);
/* Stall until readers have seen the seen writer and cleared. */ /* Stall until readers have seen the writer and cleared. */
while (ck_pr_cas_32(&rw->value, CK_SWLOCK_WRITER_BIT, while (ck_pr_cas_32(&rw->value, CK_SWLOCK_WRITER_BIT,
CK_SWLOCK_WRITER_MASK) == false) { CK_SWLOCK_WRITER_MASK) == false) {
do { do {

Loading…
Cancel
Save