Commit 2b72be54 authored by Alexandre Julliard's avatar Alexandre Julliard

Replace calls to WaitForMultipleObjects with a 0 count by calls to

SleepEx.
parent dfe397fc
...@@ -141,7 +141,7 @@ BOOL WINAPI CancelIo(HANDLE handle) ...@@ -141,7 +141,7 @@ BOOL WINAPI CancelIo(HANDLE handle)
if ( ovp->handle == handle ) if ( ovp->handle == handle )
cancel_async ( ovp ); cancel_async ( ovp );
} }
WaitForMultipleObjectsEx(0,NULL,FALSE,1,TRUE); SleepEx(1,TRUE);
return TRUE; return TRUE;
} }
......
...@@ -77,7 +77,7 @@ static DWORD CALLBACK SYSTEM_TimerThread( void *dummy ) ...@@ -77,7 +77,7 @@ static DWORD CALLBACK SYSTEM_TimerThread( void *dummy )
when.s.LowPart = when.s.HighPart = 0; when.s.LowPart = when.s.HighPart = 0;
SetWaitableTimer( SYS_timer, &when, (SYS_TIMER_RATE+500)/1000, SYSTEM_TimerTick, 0, FALSE ); SetWaitableTimer( SYS_timer, &when, (SYS_TIMER_RATE+500)/1000, SYSTEM_TimerTick, 0, FALSE );
for (;;) WaitForMultipleObjectsEx( 0, NULL, FALSE, INFINITE, TRUE ); for (;;) SleepEx( INFINITE, TRUE );
} }
......
...@@ -837,7 +837,7 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat) ...@@ -837,7 +837,7 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat)
if (lpStat) { if (lpStat) {
lpStat->status = 0; lpStat->status = 0;
WaitForMultipleObjectsEx(0,NULL,FALSE,1,TRUE); SleepEx(1,TRUE);
lpStat->cbOutQue = comm_outbuf(ptr); lpStat->cbOutQue = comm_outbuf(ptr);
lpStat->cbInQue = comm_inbuf(ptr); lpStat->cbInQue = comm_inbuf(ptr);
...@@ -1107,7 +1107,7 @@ INT16 WINAPI ReadComm16(INT16 cid,LPSTR lpvBuf,INT16 cbRead) ...@@ -1107,7 +1107,7 @@ INT16 WINAPI ReadComm16(INT16 cid,LPSTR lpvBuf,INT16 cbRead)
} }
if(0==comm_inbuf(ptr)) if(0==comm_inbuf(ptr))
WaitForMultipleObjectsEx(0,NULL,FALSE,1,TRUE); SleepEx(1,TRUE);
/* read unget character */ /* read unget character */
if (ptr->unget>=0) { if (ptr->unget>=0) {
......
...@@ -276,7 +276,7 @@ static void CALLBACK set_timer_rate( ULONG_PTR arg ) ...@@ -276,7 +276,7 @@ static void CALLBACK set_timer_rate( ULONG_PTR arg )
static DWORD CALLBACK VGA_TimerThread( void *dummy ) static DWORD CALLBACK VGA_TimerThread( void *dummy )
{ {
for (;;) WaitForMultipleObjectsEx( 0, NULL, FALSE, INFINITE, TRUE ); for (;;) SleepEx( INFINITE, TRUE );
} }
static void VGA_DeinstallTimer(void) static void VGA_DeinstallTimer(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment