Replace calls to WaitForMultipleObjects with a 0 count by calls to

SleepEx.
This commit is contained in:
Alexandre Julliard 2003-06-30 02:10:19 +00:00
parent dfe397fc38
commit 2b72be546c
4 changed files with 5 additions and 5 deletions

View File

@ -141,7 +141,7 @@ BOOL WINAPI CancelIo(HANDLE handle)
if ( ovp->handle == handle )
cancel_async ( ovp );
}
WaitForMultipleObjectsEx(0,NULL,FALSE,1,TRUE);
SleepEx(1,TRUE);
return TRUE;
}

View File

@ -77,7 +77,7 @@ static DWORD CALLBACK SYSTEM_TimerThread( void *dummy )
when.s.LowPart = when.s.HighPart = 0;
SetWaitableTimer( SYS_timer, &when, (SYS_TIMER_RATE+500)/1000, SYSTEM_TimerTick, 0, FALSE );
for (;;) WaitForMultipleObjectsEx( 0, NULL, FALSE, INFINITE, TRUE );
for (;;) SleepEx( INFINITE, TRUE );
}

View File

@ -837,7 +837,7 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat)
if (lpStat) {
lpStat->status = 0;
WaitForMultipleObjectsEx(0,NULL,FALSE,1,TRUE);
SleepEx(1,TRUE);
lpStat->cbOutQue = comm_outbuf(ptr);
lpStat->cbInQue = comm_inbuf(ptr);
@ -1107,7 +1107,7 @@ INT16 WINAPI ReadComm16(INT16 cid,LPSTR lpvBuf,INT16 cbRead)
}
if(0==comm_inbuf(ptr))
WaitForMultipleObjectsEx(0,NULL,FALSE,1,TRUE);
SleepEx(1,TRUE);
/* read unget character */
if (ptr->unget>=0) {

View File

@ -276,7 +276,7 @@ static void CALLBACK set_timer_rate( ULONG_PTR arg )
static DWORD CALLBACK VGA_TimerThread( void *dummy )
{
for (;;) WaitForMultipleObjectsEx( 0, NULL, FALSE, INFINITE, TRUE );
for (;;) SleepEx( INFINITE, TRUE );
}
static void VGA_DeinstallTimer(void)