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
a6fbf560
Commit
a6fbf560
authored
Apr 26, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Limit number of tasks processed in process_timer.
parent
58dc0346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
task.c
dlls/mshtml/task.c
+16
-4
No files found.
dlls/mshtml/task.c
View file @
a6fbf560
...
...
@@ -255,17 +255,29 @@ static LRESULT process_timer(void)
thread_data_t
*
thread_data
;
IDispatch
*
disp
;
DWORD
tc
;
task_timer_t
*
timer
;
task_timer_t
*
timer
=
NULL
,
*
last_timer
;
TRACE
(
"
\n
"
);
thread_data
=
get_thread_data
(
FALSE
);
assert
(
thread_data
!=
NULL
);
while
(
!
list_empty
(
&
thread_data
->
timer_list
))
{
timer
=
LIST_ENTRY
(
list_head
(
&
thread_data
->
timer_list
),
task_timer_t
,
entry
);
if
(
list_empty
(
&
thread_data
->
timer_list
))
{
KillTimer
(
thread_data
->
thread_hwnd
,
TIMER_ID
);
return
0
;
}
last_timer
=
LIST_ENTRY
(
list_tail
(
&
thread_data
->
timer_list
),
task_timer_t
,
entry
);
do
{
tc
=
GetTickCount
();
if
(
timer
==
last_timer
)
{
timer
=
LIST_ENTRY
(
list_head
(
&
thread_data
->
timer_list
),
task_timer_t
,
entry
);
SetTimer
(
thread_data
->
thread_hwnd
,
TIMER_ID
,
timer
->
time
>
tc
?
timer
->
time
-
tc
:
0
,
NULL
);
return
0
;
}
timer
=
LIST_ENTRY
(
list_head
(
&
thread_data
->
timer_list
),
task_timer_t
,
entry
);
if
(
timer
->
time
>
tc
)
{
SetTimer
(
thread_data
->
thread_hwnd
,
TIMER_ID
,
timer
->
time
-
tc
,
NULL
);
return
0
;
...
...
@@ -284,7 +296,7 @@ static LRESULT process_timer(void)
call_timer_disp
(
disp
);
IDispatch_Release
(
disp
);
}
}
while
(
!
list_empty
(
&
thread_data
->
timer_list
));
KillTimer
(
thread_data
->
thread_hwnd
,
TIMER_ID
);
return
0
;
...
...
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