Lines Matching refs:futex_queue_count
194 static unsigned int futex_queue_count(const struct futex_queue *);
255 KASSERT(fc->fc_waitcount >= futex_queue_count(&fc->fc_waiters), in futex_condvar_assert()
360 if (futex_queue_count(&fc->fc_waiters) != 0) in futex_condvar_unmanage()
379 (futex_queue_count(&fl->fl_readers) == 0 && in futex_lock_assert()
380 futex_queue_count(&fl->fl_writers) == 0), in futex_lock_assert()
444 KASSERT(futex_queue_count(&fw.fw_donated) == 0, in futex_lock_rdlock()
474 if (futex_queue_count(&fl->fl_readers) == 0 && in futex_lock_unmanage()
475 futex_queue_count(&fl->fl_writers) == 0) { in futex_lock_unmanage()
668 if (futex_queue_count(&fl->fl_writers) > 0) { in futex_lock_wake_up_next()
670 if (futex_queue_count(&fl->fl_writers) > 1 || in futex_lock_wake_up_next()
671 futex_queue_count(&fl->fl_readers) > 0) { in futex_lock_wake_up_next()
696 futex_queue_count(&fl->fl_readers)); in futex_lock_wake_up_next()
717 futex_queue_count(donated) > 0); in futex_lock_wrlock()
721 KASSERT(futex_queue_count(donated) == 0 || in futex_lock_wrlock()
741 KASSERT(futex_queue_count(&fw.fw_donated) == 0, in futex_lock_wrlock()
761 futex_queue_count(const struct futex_queue *fq) in futex_queue_count() function
1020 KASSERT(futex_queue_count(&fw.fw_donated) == 0, in cloudabi_futex_condvar_wait()
1041 KASSERT(futex_queue_count(&fw.fw_donated) == 0, in cloudabi_futex_condvar_wait()