doc/ck_swlock: Fix example.

ck_pring
Samy Al Bahra 11 years ago
parent 7836ad5226
commit 2f31440796

@ -120,8 +120,8 @@ writer(void)
/* Write-side critical section. */ /* Write-side critical section. */
/* This is safe to do with-in a latch. */ /* This is safe to do with-in a latch. */
*contrived = *lock; contrived = lock;
*lock = *contrived; lock = contrived;
ck_swlock_write_unlatch(&lock); ck_swlock_write_unlatch(&lock);
} }

Loading…
Cancel
Save