Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d6a17d2c
Commit
d6a17d2c
authored
Mar 05, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Make the initial timeout longer in flush_events() for machines…
user32/tests: Make the initial timeout longer in flush_events() for machines with slower round-trip times.
parent
de928a09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
dde.c
dlls/user32/tests/dde.c
+3
-1
msg.c
dlls/user32/tests/msg.c
+4
-2
win.c
dlls/user32/tests/win.c
+3
-1
No files found.
dlls/user32/tests/dde.c
View file @
d6a17d2c
...
@@ -45,13 +45,15 @@ static void flush_events(void)
...
@@ -45,13 +45,15 @@ static void flush_events(void)
{
{
MSG
msg
;
MSG
msg
;
int
diff
=
default_timeout
;
int
diff
=
default_timeout
;
int
min_timeout
=
50
;
DWORD
time
=
GetTickCount
()
+
diff
;
DWORD
time
=
GetTickCount
()
+
diff
;
while
(
diff
>
0
)
while
(
diff
>
0
)
{
{
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min
(
10
,
diff
)
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min
_timeout
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
diff
=
time
-
GetTickCount
();
diff
=
time
-
GetTickCount
();
min_timeout
=
10
;
}
}
}
}
...
...
dlls/user32/tests/msg.c
View file @
d6a17d2c
...
@@ -1543,14 +1543,16 @@ static void add_message(const struct message *msg)
...
@@ -1543,14 +1543,16 @@ static void add_message(const struct message *msg)
static
void
flush_events
(
void
)
static
void
flush_events
(
void
)
{
{
MSG
msg
;
MSG
msg
;
int
diff
=
100
;
int
diff
=
200
;
int
min_timeout
=
50
;
DWORD
time
=
GetTickCount
()
+
diff
;
DWORD
time
=
GetTickCount
()
+
diff
;
while
(
diff
>
0
)
while
(
diff
>
0
)
{
{
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min
(
10
,
diff
)
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min
_timeout
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
diff
=
time
-
GetTickCount
();
diff
=
time
-
GetTickCount
();
min_timeout
=
10
;
}
}
}
}
...
...
dlls/user32/tests/win.c
View file @
d6a17d2c
...
@@ -63,13 +63,15 @@ static void flush_events(void)
...
@@ -63,13 +63,15 @@ static void flush_events(void)
{
{
MSG
msg
;
MSG
msg
;
int
diff
=
200
;
int
diff
=
200
;
int
min_timeout
=
50
;
DWORD
time
=
GetTickCount
()
+
diff
;
DWORD
time
=
GetTickCount
()
+
diff
;
while
(
diff
>
0
)
while
(
diff
>
0
)
{
{
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min
(
10
,
diff
)
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min
_timeout
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
diff
=
time
-
GetTickCount
();
diff
=
time
-
GetTickCount
();
min_timeout
=
10
;
}
}
}
}
...
...
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