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
5fa60145
Commit
5fa60145
authored
Oct 01, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr110: Reset chore task_collection earlier to prevent occasional test failure.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55686
parent
450c3588
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
concurrency.c
dlls/msvcrt/concurrency.c
+6
-7
No files found.
dlls/msvcrt/concurrency.c
View file @
5fa60145
...
...
@@ -2241,20 +2241,19 @@ static void execute_chore(_UnrealizedChore *chore,
static
void
CALLBACK
chore_wrapper_finally
(
BOOL
normal
,
void
*
data
)
{
_UnrealizedChore
*
chore
=
data
;
volatile
LONG
*
ptr
;
struct
_StructuredTaskCollection
*
task_collection
=
chore
->
task_collection
;
LONG
finished
=
1
;
TRACE
(
"(%u %p)
\n
"
,
normal
,
data
);
if
(
!
chore
->
task_collection
)
if
(
!
task_collection
)
return
;
ptr
=
&
chore
->
task_collection
->
finished
;
chore
->
task_collection
=
NULL
;
if
(
InterlockedCompareExchange
(
ptr
,
1
,
FINISHED_INITIAL
)
!=
FINISHED_INITIAL
)
finished
=
InterlockedIncrement
(
ptr
);
if
(
InterlockedCompareExchange
(
&
task_collection
->
finished
,
1
,
FINISHED_INITIAL
)
!=
FINISHED_INITIAL
)
finished
=
InterlockedIncrement
(
&
task_collection
->
finished
);
if
(
!
finished
)
call_Context_Unblock
(
chore
->
task_collection
->
event
);
chore
->
task_collection
=
NULL
;
call_Context_Unblock
(
task_collection
->
event
);
}
static
void
__cdecl
chore_wrapper
(
_UnrealizedChore
*
chore
)
...
...
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