RtSleepEx

RtSleepEx suspends the current thread for the specified time.

Syntax

Copy
DWORD RtSleepEx(
    DWORD dwMilliseconds
    BOOL bAlertable
);

Parameters

dwMilliseconds

The time interval for which execution is to be suspended, in milliseconds.

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 there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution.

A value of INFINITE indicates that the suspension should not time out.

bAlertable

Ignored. The function does not return until the period specified in dwMilliseconds has elapsed.

Return Value

If the specified time interval expired, the return value is 0 (zero).

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Rtapi.h rtkrnl.lib

See Also