FreeBSD/sys/kern/kern_synch.c
/*
 * pause() delays the calling thread by the given number of system ticks.
 * During cold bootup, pause() uses the DELAY() function instead of
 * the tsleep() function to do the waiting. The "timo" argument must be
 * greater than or equal to zero. A "timo" value of zero is equivalent
 * to a "timo" value of one.
 */
pause() delays the calling thread by the given number of system ticks.
During cold bootup, pause() uses the DELAY() function instead of
the tsleep() function to do the waiting. The "timo" argument must be
greater than or equal to zero. A "timo" value of zero is equivalent
to a "timo" value of one.
pause () delays the calling thread by the given number of system ticks . During cold bootup pause () uses the DELAY () function instead of the tsleep () function to do the waiting . The " timo " argument must be greater than or equal to zero . A " timo " value of zero is equivalent to a " timo " value of one .
int
pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags)
{
	KASSERT(sbt >= 0, ("pause: timeout must be >= 0"));
	if (sbt == 0)
		sbt = tick_sbt;
	if (cold || kdb_active || SCHEDULER_STOPPED()) {
		while (sbt >= SBT_1S) {
			DELAY(1000000);
			sbt -= SBT_1S;
		}
		sbt = howmany(sbt, SBT_1US);
		if (sbt > 0)
			DELAY(sbt);
		return (0);
	}
	return (_sleep(&pause_wchan[curcpu], NULL, 0, wmesg, sbt, pr, flags));
}
int pause_sbt ( const char * wmesg , sbintime_t sbt , sbintime_t pr , int flags ) { KASSERT ( sbt >= 0 , ( " " ) ) ; if ( sbt == 0 ) sbt = tick_sbt ; if ( cold || kdb_active || SCHEDULER_STOPPED ( ) ) { while ( sbt >= SBT_1S ) { DELAY ( 1000000 ) ; sbt -= SBT_1S ; } sbt = howmany ( sbt , SBT_1US ) ; if ( sbt > 0 ) DELAY ( sbt ) ; return ( 0 ) ; } return ( _sleep ( & pause_wchan [ curcpu ] , NULL , 0 , wmesg , sbt , pr , flags ) ) ; }
pause() delays the calling thread by the given number of system ticks.
pause () delays the calling thread by the given number of system ticks .
/* silently convert invalid timeouts */ /*
		 * We delay one second at a time to avoid overflowing the
		 * system specific DELAY() function(s):
		 */ /* Do the delay remainder, if any */