Replace calls to WaitForMultipleObjects with a 0 count by calls to
SleepEx.
This commit is contained in:
parent
dfe397fc38
commit
2b72be546c
|
@ -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 )
|
||||||
|
|
||||||
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)
|
||||||
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
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 )
|
||||||
|
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue