FreeBSD/sys/kern/kern_synch.c
/*
 * Make a thread sleeping on the specified identifier runnable.
 * May wake more than one thread if a target thread is currently
 * swapped out.
 */
Make a thread sleeping on the specified identifier runnable.
May wake more than one thread if a target thread is currently
swapped out.
Make a thread sleeping on the specified identifier runnable . May wake more than one thread if a target thread is currently swapped out .
void
wakeup_one(void *ident)
{
	int wakeup_swapper;
	sleepq_lock(ident);
	wakeup_swapper = sleepq_signal(ident, SLEEPQ_SLEEP, 0, 0);
	sleepq_release(ident);
	if (wakeup_swapper)
		kick_proc0();
}
void wakeup_one ( void * ident ) { int wakeup_swapper ; sleepq_lock ( ident ) ; wakeup_swapper = sleepq_signal ( ident , SLEEPQ_SLEEP , 0 , 0 ) ; sleepq_release ( ident ) ; if ( wakeup_swapper ) kick_proc0 ( ) ; }
Make a thread sleeping on the specified identifier runnable.
Make a thread sleeping on the specified identifier runnable .