INtime SDK Help
RtSleep
INtime SDK v6 > About INtime > INtime Kernel > Threads > RtSleep

Places the current thread in the sleep state until the number of high-level ticks specified by dwMilliseconds occur.

BOOLEAN RtSleep (
    DWORD dwMilliseconds
);

Parameters

dwMilliseconds
The time period for which the calling thread waits. Valid values include:
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.

Return Values

TRUE
Success
FALSE
To determine the status, call GetLastRtError

Status

E_OK 0x0000
No exceptional conditions occurred.
E_PARAM 0x8004
dwMilliseconds contains an invalid value.

Remarks

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.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib
See Also

Threads