Lines Matching defs:waiters
426 uintptr_t waiters;
439 * we will wake up the exclusive waiters when we drop the lock.
446 waiters = (x & SX_LOCK_WAITERS);
448 (uintptr_t)curthread | waiters)) {
492 * Try to switch from an exclusive lock with no shared waiters
493 * to one sharer with no shared waiters. If there are
494 * exclusive waiters, we don't need to lock the sleep queue so
499 * We have to lock the sleep queue if there are shared waiters
509 * Lock the sleep queue so we can read the waiters bits
510 * without any races and wakeup any shared waiters.
516 * shared lock. If there are any shared waiters, wake them up.
778 * and exclusive waiters and a shared waiter hasn't
783 * as there are other exclusive waiters still. If we
828 CTR2(KTR_LOCK, "%s: %p set excl waiters flag",
837 * lock and the exclusive waiters flag is set, we have
952 * ideal. It gives precedence to shared waiters if they are
954 * state of the exclusive waiters flag.
957 * them precedence and cleaning up the shared waiters bit anyway.
968 /* Wake up all the waiters for the specific queue. */
1188 CTR2(KTR_LOCK, "%s: %p set shared waiters flag",
1340 * Just wake up all the exclusive waiters.
1512 db_printf(" waiters: ");