Microsoft KB Archive/260052

= INFO: WaitForMultipleObject Cannot Be Used for Interrupt Events =

PSS ID Number: 260052

Article Last Modified on 10/11/2002

-

The information in this article applies to:


 * Microsoft Windows CE 2.1 Embedded ToolKit (ETK)
 * Microsoft Windows CE 2.01 Embedded ToolKit (ETK)
 * Microsoft Windows CE Platform Builder 2.11
 * Microsoft Windows CE Platform Builder 2.12
 * Microsoft Windows CE Platform Builder 3.0 (BETA)
 * Microsoft Windows CE 2.10 Enhancement Pack for Windows CE Embedded Toolkit for Visual C++ 5.0

-



This article was previously published under Q260052



SUMMARY
Windows CE Interrupt Service Threads (IST) must use the WaitForSingleObjects function to wait on the event handle that is associated with the interrupt. Using the WaitForMultipleObjects function for interrupt events may result in lost interrupts.



MORE INFORMATION
When an event handle is linked to an interrupt ID with InterruptInitialize, the kernel assumes that the event is the only way the IST will be signaled to proceed.

If signaling the IST from a source other than the ISR is required, then the SetInterruptEvent function should be called with the interrupt ID. Used in association with a flag, SetInterruptEvent can be used by one portion of a device driver (such as a power handler) to signal the IST to take special action.

Keywords: kbDSupport kbinfo KB260052

Technology: kbAudDeveloper kbSDKSearch kbWinCEEnh210ETKVC500 kbWinCEETK201 kbWinCEETK210 kbWinCEETKSearch kbWinCESDK211 kbWinCESDK212 kbWinCESDK300beta kbWinCESDKSearch kbWinCESearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.