Support for Sleep() on Win32s

ID: Q100713


The information in this article applies to:
  • Microsoft Win32s versions 1.0, 1.1, 1.2, 1.3, 1.30a, 1.3c


SUMMARY

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 query words: 1.00 1.20

Keywords : kbWin32s
Version : WINDOWS:1.0,1.1,1.2,1.3,1.30a,1.3c
Platform : WINDOWS
Issue type :


Last Reviewed: January 14, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.