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
7af93f49
Commit
7af93f49
authored
Apr 25, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use TICKSPERMSEC define in concurrency functions.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d7c4fa0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
concurrency.c
dlls/msvcrt/concurrency.c
+4
-4
No files found.
dlls/msvcrt/concurrency.c
View file @
7af93f49
...
...
@@ -1944,8 +1944,8 @@ bool __thiscall critical_section_try_lock_for(
last
->
next
=
q
;
GetSystemTimeAsFileTime
(
&
ft
);
to
.
QuadPart
=
((
LONGLONG
)
ft
.
dwHighDateTime
<<
32
)
+
ft
.
dwLowDateTime
+
(
LONGLONG
)
timeout
*
10000
;
to
.
QuadPart
=
((
LONGLONG
)
ft
.
dwHighDateTime
<<
32
)
+
ft
.
dwLowDateTime
+
(
LONGLONG
)
timeout
*
TICKSPERMSEC
;
status
=
NtWaitForKeyedEvent
(
keyed_event
,
q
,
0
,
&
to
);
if
(
status
==
STATUS_TIMEOUT
)
{
if
(
!
InterlockedExchange
(
&
q
->
free
,
TRUE
))
...
...
@@ -2128,7 +2128,7 @@ unsigned int __cdecl _GetConcurrency(void)
static
inline
PLARGE_INTEGER
evt_timeout
(
PLARGE_INTEGER
pTime
,
unsigned
int
timeout
)
{
if
(
timeout
==
COOPERATIVE_TIMEOUT_INFINITE
)
return
NULL
;
pTime
->
QuadPart
=
(
ULONGLONG
)
timeout
*
-
10000
;
pTime
->
QuadPart
=
(
ULONGLONG
)
timeout
*
-
TICKSPERMSEC
;
return
pTime
;
}
...
...
@@ -2396,7 +2396,7 @@ bool __thiscall _Condition_variable_wait_for(_Condition_variable *this,
GetSystemTimeAsFileTime
(
&
ft
);
to
.
QuadPart
=
((
LONGLONG
)
ft
.
dwHighDateTime
<<
32
)
+
ft
.
dwLowDateTime
+
(
LONGLONG
)
timeout
*
10000
;
ft
.
dwLowDateTime
+
(
LONGLONG
)
timeout
*
TICKSPERMSEC
;
while
(
q
->
next
!=
CV_WAKE
)
{
status
=
RtlWaitOnAddress
(
&
q
->
next
,
&
next
,
sizeof
(
next
),
&
to
);
if
(
status
==
STATUS_TIMEOUT
)
{
...
...
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