MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sleepq_wait

Function sleepq_wait

freebsd/kern/subr_sleepqueue.c:651–660  ·  view source on GitHub ↗

* Block the current thread until it is awakened from its sleep queue. */

Source from the content-addressed store, hash-verified

649 * Block the current thread until it is awakened from its sleep queue.
650 */
651void
652sleepq_wait(const void *wchan, int pri)
653{
654 struct thread *td;
655
656 td = curthread;
657 MPASS(!(td->td_flags & TDF_SINTR));
658 thread_lock(td);
659 sleepq_switch(wchan, pri);
660}
661
662/*
663 * Block the current thread until it is awakened from its sleep queue

Callers 14

_cv_waitFunction · 0.85
_cv_wait_unlockFunction · 0.85
foffset_lockFunction · 0.85
kern_sx.cFile · 0.85
_sx_slock_hardFunction · 0.85
_callout_stop_safeFunction · 0.85
sleeplkFunction · 0.85
__lockmgr_argsFunction · 0.85
_sleepFunction · 0.85
msleep_spin_sbtFunction · 0.85
_blockcount_sleepFunction · 0.85
_vm_page_busy_sleepFunction · 0.85

Calls 1

sleepq_switchFunction · 0.85

Tested by

no test coverage detected