RtSleepFtEx
RtSleepFtEx suspends execution of the current thread for a specified time.
Syntax
ULONG RtSleepFtEx(
PLARGE_INTEGER pSleepTime,
BOOL bAlertable
);
Parameters
pSleepTime
A pointer to the time interval for which execution is to be suspended, in 100 nanosecond intervals. If this value is 0, the thread relinquishes 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.
bAlertable
Ignored. This function does not return until the sleep period specified in parameter pSleepTime has elapsed.
Return Value
If the function succeeds, it returns 0 (zero). If the function fails, it returns -1. If this function fails, call GetLastError to obtain an error code.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
RtssApi.h | rtkrnl.lib |
See Also: