ole32: Pass the no yield flag to PeekMessage.

Pass the no yield flag to PeekMessage since we sleep in
MsgWaitForMultipleObjectsEx and the extra context switch is wasteful.
This commit is contained in:
Robert Shearman 2006-03-29 18:38:21 +01:00 committed by Alexandre Julliard
parent d18711e282
commit 3091aa5302
1 changed files with 1 additions and 1 deletions

View File

@ -2703,7 +2703,7 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
if (res == WAIT_OBJECT_0 + cHandles) /* messages available */
{
MSG msg;
while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE|PM_NOYIELD))
{
/* FIXME: filter the messages here */
TRACE("received message whilst waiting for RPC: 0x%04x\n", msg.message);