function suspends the execution of the current thread for a specified
| DWORD dwMilliseconds
|// sleep time in milliseconds
Specifies the time, in milliseconds, for which to suspend execution. 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 causes an infinite delay.
This function does not return a value.
A thread can relinquish the remainder of its time slice by calling this
function with a sleep time of zero milliseconds.
You have to be careful when using Sleep
and DDE. If a thread creates any windows, it must process messages. DDE sends
messages to all windows in the system. If you have a thread that uses a wait
function with no time-out interval, the system will deadlock. Therefore, if you
have a thread that creates windows, use MsgWaitForMultipleObjects
, rather than Sleep
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database