FreeBSD/sys/kern/subr_sleepqueue.c
/*
 * Block the current thread until it is awakened from its sleep queue.
 */
Block the current thread until it is awakened from its sleep queue.
Block the current thread until it is awakened from its sleep queue .
void
sleepq_wait(void *wchan, int pri)
{
	struct thread *td;
	td = curthread;
	MPASS(!(td->td_flags & TDF_SINTR));
	thread_lock(td);
	sleepq_switch(wchan, pri);
	thread_unlock(td);
}
void sleepq_wait ( void * wchan , int pri ) { struct thread * td ; td = curthread ; MPASS ( ! ( td -> td_flags & TDF_SINTR ) ) ; thread_lock ( td ) ; sleepq_switch ( wchan , pri ) ; thread_unlock ( td ) ; }
Block the current thread until it is awakened from its sleep queue.
Block the current thread until it is awakened from its sleep queue .