RW_WRITE_LOCK
lock_value = RW_WRITE_LOCK(curthread);
lock_value = RW_WRITE_LOCK(curthread);
new = RW_WRITE_LOCK(curthread) |
new = RW_WRITE_LOCK(next_writer);
if (casip(&lp->rw_wwwh, 0, RW_WRITE_LOCK(curthread)) != 0)
RW_READ_LOCK - RW_WRITE_LOCK(curthread)) & RW_HAS_WAITERS) {
new = old + RW_WRITE_LOCK(curthread) - RW_READ_LOCK;
#define RW_DOUBLE_LOCK (RW_WRITE_LOCK(0) | RW_READ_LOCK)
(RW_OWNER | RW_WRITE_LOCKED)) == RW_WRITE_LOCK(curthread))