Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2b72be54
Commit
2b72be54
authored
Jun 30, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace calls to WaitForMultipleObjects with a 0 count by calls to
SleepEx.
parent
dfe397fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
file.c
dlls/kernel/file.c
+1
-1
system.c
dlls/kernel/system.c
+1
-1
comm16.c
dlls/user/comm16.c
+2
-2
vga.c
dlls/winedos/vga.c
+1
-1
No files found.
dlls/kernel/file.c
View file @
2b72be54
...
@@ -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
;
}
}
...
...
dlls/kernel/system.c
View file @
2b72be54
...
@@ -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
);
}
}
...
...
dlls/user/comm16.c
View file @
2b72be54
...
@@ -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
)
{
...
...
dlls/winedos/vga.c
View file @
2b72be54
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment