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
2f0b93ca
Commit
2f0b93ca
authored
Mar 04, 2012
by
Jörg Höhle
Committed by
Alexandre Julliard
Feb 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Stabilize CreateTimerQueueTimer callbacks over time.
parent
ee880b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
threadpool.c
dlls/ntdll/threadpool.c
+12
-4
No files found.
dlls/ntdll/threadpool.c
View file @
2f0b93ca
...
...
@@ -651,13 +651,21 @@ static void queue_timer_expire(struct timer_queue *q)
RtlEnterCriticalSection
(
&
q
->
cs
);
if
(
list_head
(
&
q
->
timers
))
{
ULONGLONG
now
,
next
;
t
=
LIST_ENTRY
(
list_head
(
&
q
->
timers
),
struct
queue_timer
,
entry
);
if
(
!
t
->
destroy
&&
t
->
expire
<=
queue_current_time
(
))
if
(
!
t
->
destroy
&&
t
->
expire
<=
((
now
=
queue_current_time
())
))
{
++
t
->
runcount
;
queue_move_timer
(
t
,
t
->
period
?
queue_current_time
()
+
t
->
period
:
EXPIRE_NEVER
,
FALSE
);
if
(
t
->
period
)
{
next
=
t
->
expire
+
t
->
period
;
/* avoid trigger cascade if overloaded / hibernated */
if
(
next
<
now
)
next
=
now
+
t
->
period
;
}
else
next
=
EXPIRE_NEVER
;
queue_move_timer
(
t
,
next
,
FALSE
);
}
else
t
=
NULL
;
...
...
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