Searched refs:RW_WRITE_LOCK (Results 1 – 2 of 2) sorted by relevance
54 #define RW_WRITE_LOCK(thread) ((uintptr_t)(thread) | RW_WRITE_LOCKED) macro61 #define RW_DOUBLE_LOCK (RW_WRITE_LOCK(0) | RW_READ_LOCK)74 (RW_OWNER | RW_WRITE_LOCKED)) == RW_WRITE_LOCK(curthread))
294 lock_value = RW_WRITE_LOCK(curthread); in rw_enter_sleep()429 lock_value = RW_WRITE_LOCK(curthread); in rw_exit_wakeup()471 new = RW_WRITE_LOCK(curthread) | in rw_exit_wakeup()513 new = RW_WRITE_LOCK(next_writer); in rw_exit_wakeup()562 if (casip(&lp->rw_wwwh, 0, RW_WRITE_LOCK(curthread)) != 0) in rw_tryenter()585 RW_READ_LOCK - RW_WRITE_LOCK(curthread)) & RW_HAS_WAITERS) { in rw_downgrade()611 new = old + RW_WRITE_LOCK(curthread) - RW_READ_LOCK; in rw_tryupgrade()