Suspends the current thread's execution for, at a minimum, the specified interval, expressed in milliseconds.
VOID Sleep( DWORD dwMilliseconds VOID RtSleep( DWORD dwMilliseconds );
dwMilliseconds
A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If no other threads of equal priority are ready to run, the function immediately returns, and the thread continues execution.
A thread can relinquish the remainder of its time slice by calling this function with a sleep time of zero milliseconds.
Note: The kernel converts milliseconds to high-level ticks.
Positive values less than 10 are are equivalent to RtSleep(0).None.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/iwin32.h intime/rt/include/winbase.h |
iwin32.h windows.h |
iwin32.lib |
Note
RtSleepFt, iwin32 API, iwin32 Overview