|
RtSleepEx suspends the current thread for the specified time.
Syntax
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
If this parameter is FALSE, the function does not return until the time-out period has elapsed. If an I/O completion callback occurs, the function does not return and the I/O completion function is not executed. If an APC is queued to the thread, the function does not return and the APC function is not executed.
Return Values
The return value is zero if the specified time interval expired.
See Also