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

Function sleepq_wait_sig

freebsd/kern/subr_sleepqueue.c:666–675  ·  view source on GitHub ↗

* Block the current thread until it is awakened from its sleep queue * or it is interrupted by a signal. */

Source from the content-addressed store, hash-verified

664 * or it is interrupted by a signal.
665 */
666int
667sleepq_wait_sig(const void *wchan, int pri)
668{
669 int rcatch;
670
671 rcatch = sleepq_catch_signals(wchan, pri);
672 if (rcatch)
673 return (rcatch);
674 return (sleepq_check_signals());
675}
676
677/*
678 * Block the current thread until it is awakened from its sleep queue

Callers 6

_cv_wait_sigFunction · 0.85
kern_sx.cFile · 0.85
_sx_slock_hardFunction · 0.85
sleeplkFunction · 0.85
_sleepFunction · 0.85
_blockcount_sleepFunction · 0.85

Calls 2

sleepq_catch_signalsFunction · 0.85
sleepq_check_signalsFunction · 0.85

Tested by

no test coverage detected