OS_Sleep


C Specification

#include <nitro/os.h>
void OS_Sleep( u32 msec );

Description

This function stops the thread for a specified time. Internally an alarm is used to exit this sleep status after the specified time. Therefore, the check system and alarm system need to be initialized in advance using OS_InitThread(), as well as OS_InitTick() and OS_InitAlarm().

msec is the time for stopping and the unit is in milliseconds.

Arguments

msec   Time in sleep status (milliseconds)

Return Values

None

See Also

OS_InitThread, OS_InitTick, OS_InitAlarm, OS_SleepThread

Revision History

03/02/2004 Initial Version