Places the current thread in the sleep state until the number of high-level ticks specified by dwMilliseconds
occur.
BOOLEAN RtSleep ( DWORD dwMilliseconds );
dwMilliseconds
10-655349 |
The number of milliseconds the thread sleeps, after which it awakes.
Note: The kernel converts milliseconds to high-level ticks. Positive values less than 10 are are equivalent to RtSleep(0). |
NO_WAIT |
The thread does not wait. |
TRUE
FALSE
E_OK 0x0000
E_PARAM 0x8004
dwMilliseconds
contains an invalid value. The actual time expired from execution of this call to the end of dwMilliseconds
varies depending upon how much time remains until the next high-level tick.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |