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
0467b96c
Commit
0467b96c
authored
Mar 14, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/systemclock: Use GetTickCount64() directly.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d7e9563b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
systemclock.c
dlls/quartz/systemclock.c
+2
-8
No files found.
dlls/quartz/systemclock.c
View file @
0467b96c
...
...
@@ -82,7 +82,6 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
struct
list
*
entry
;
DWORD
timeOut
=
INFINITE
;
MSG
msg
;
HRESULT
hr
;
REFERENCE_TIME
curTime
;
TRACE
(
"(%p): Main Loop
\n
"
,
This
);
...
...
@@ -91,12 +90,8 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
if
(
timeOut
>
0
)
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
timeOut
,
QS_POSTMESSAGE
|
QS_SENDMESSAGE
|
QS_TIMER
);
EnterCriticalSection
(
&
This
->
safe
);
/*timeOut = IReferenceClock_OnTimerUpdated(This); */
hr
=
IReferenceClock_GetTime
(
&
This
->
IReferenceClock_iface
,
&
curTime
);
if
(
FAILED
(
hr
))
{
timeOut
=
INFINITE
;
goto
outrefresh
;
}
curTime
=
GetTickCount64
()
*
10000
;
/** First SingleShots Advice: sorted list */
LIST_FOR_EACH_ENTRY_SAFE
(
sink
,
cursor
,
&
This
->
single_sinks
,
struct
advise_sink
,
entry
)
...
...
@@ -128,7 +123,6 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
timeOut
=
min
(
timeOut
,
((
sink
->
rtBaseTime
+
sink
->
rtIntervalTime
)
-
curTime
)
/
10000
);
}
outrefresh:
LeaveCriticalSection
(
&
This
->
safe
);
while
(
PeekMessageW
(
&
msg
,
NULL
,
0
,
0
,
PM_REMOVE
))
{
...
...
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