FreeBSD/sys/kern/subr_sleepqueue.c
/*
 * Block the current thread until it is awakened from its sleep queue
 * or it is interrupted by a signal.
 */
Block the current thread until it is awakened from its sleep queue
or it is interrupted by a signal.
Block the current thread until it is awakened from its sleep queue or it is interrupted by a signal .
int
sleepq_wait_sig(void *wchan, int pri)
{
	int rcatch;
	int rval;
	rcatch = sleepq_catch_signals(wchan, pri);
	rval = sleepq_check_signals();
	thread_unlock(curthread);
	if (rcatch)
		return (rcatch);
	return (rval);
}
int sleepq_wait_sig ( void * wchan , int pri ) { int rcatch ; int rval ; rcatch = sleepq_catch_signals ( wchan , pri ) ; rval = sleepq_check_signals ( ) ; thread_unlock ( curthread ) ; if ( rcatch ) return ( rcatch ) ; return ( rval ) ; }
Block the current thread until it is awakened from its sleep queue
 or it is interrupted by a signal.
Block the current thread until it is awakened from its sleep queue or it is interrupted by a signal .