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
dce7a61f
Commit
dce7a61f
authored
Sep 19, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Sep 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Use atomic write for releasing threadsafe_queue spin lock.
This fixes data race in ARM/ARM64 platforms, and prevents potential memory access reordering by the compiler.
parent
94512ecc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
details.c
dlls/msvcp90/details.c
+2
-2
No files found.
dlls/msvcp90/details.c
View file @
dce7a61f
...
...
@@ -239,7 +239,7 @@ static void threadsafe_queue_push(threadsafe_queue *queue, size_t id,
queue
->
tail
=
p
;
if
(
!
queue
->
head
)
queue
->
head
=
p
;
queue
->
lock
=
0
;
WriteRelease
(
&
queue
->
lock
,
0
)
;
}
else
{
...
...
@@ -289,7 +289,7 @@ static BOOL threadsafe_queue_pop(threadsafe_queue *queue, size_t id,
queue
->
head
=
p
->
_Next
;
if
(
!
queue
->
head
)
queue
->
tail
=
NULL
;
queue
->
lock
=
0
;
WriteRelease
(
&
queue
->
lock
,
0
)
;
/* TODO: Add exception handling */
call__Concurrent_queue_base_v4__Deallocate_page
(
parent
,
p
);
...
...
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