Support for Sleep() on Win32s

ID: Q100713

1.00 1.10 1.20 1.30 1.30a 1.30c WINDOWS kbprg

The information in this article applies to:

The Win32 application programming interface (API) documentation indicates that Sleep() is supported on Win32s. It is important to note, however, that the behavior of Sleep() on Win32s is not the same as it is under Windows NT.

Under Win32s, Sleep() calls Yield(). The Windows version 3.1 Yield() function yields only if the message queue is empty; therefore, Sleep() cannot be relied on to do anything. Use a PeekMessage() loop to do idle time processing.

Additional reference words: 1.00 1.10 1.20 1.30 1.30a 1.30c KBCategory: kbprg KBSubcategory: W32s

Keywords          : kbWin32s 
Version           : 1.00 1.10 1.20 1.30 1.30a 1.30c
Platform          : WINDOWS

Last Reviewed: December 19, 1996