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

Function sleepq_check_signals

freebsd/kern/subr_sleepqueue.c:636–646  ·  view source on GitHub ↗

* Check to see if we were awoken by a signal. */

Source from the content-addressed store, hash-verified

634 * Check to see if we were awoken by a signal.
635 */
636static inline int
637sleepq_check_signals(void)
638{
639 struct thread *td;
640
641 td = curthread;
642 KASSERT((td->td_flags & TDF_SINTR) == 0,
643 ("thread %p still in interruptible sleep?", td));
644
645 return (td->td_intrval);
646}
647
648/*
649 * Block the current thread until it is awakened from its sleep queue.

Callers 2

sleepq_wait_sigFunction · 0.85
sleepq_timedwait_sigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected