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. */
/* This is safe to do with-in a latch. */
*contrived = *lock;
*lock = *contrived;
contrived = lock;
lock = contrived;
ck_swlock_write_unlatch(&lock);
}

Loading…
Cancel
Save