Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
Making Graphics, Windowing, and Events Subsystem (GWES) API calls in the thread that requires a real-time response can affect real-time performance negatively. GWES provides the functionality that is needed to display windows, draw objects, and enable notifications. However, this functionality has no guaranteed timeout. Because GWES utilizes a single critical section to protect access to its internal data structures, a thread can be blocked for an unbounded length of time waiting for another thread to complete an operation.
Using SetTimeras a real-time timer can also decrease performance. SetTimeris a timer that is based on Windows Mobile message queues and has no guarantee for signaling time.