Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
56d56ec6
Commit
56d56ec6
authored
Sep 21, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Apr 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove entries from queue in RtlWakeAddressAll().
parent
fffed9b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sync.c
dlls/ntdll/sync.c
+4
-2
No files found.
dlls/ntdll/sync.c
View file @
56d56ec6
...
...
@@ -916,8 +916,8 @@ NTSTATUS WINAPI RtlWaitOnAddress( const void *addr, const void *cmp, SIZE_T size
void
WINAPI
RtlWakeAddressAll
(
const
void
*
addr
)
{
struct
futex_queue
*
queue
=
get_futex_queue
(
addr
);
struct
futex_entry
*
entry
,
*
next
;
unsigned
int
count
=
0
,
i
;
struct
futex_entry
*
entry
;
DWORD
tids
[
256
];
TRACE
(
"%p
\n
"
,
addr
);
...
...
@@ -929,10 +929,12 @@ void WINAPI RtlWakeAddressAll( const void *addr )
if
(
!
queue
->
queue
.
next
)
list_init
(
&
queue
->
queue
);
LIST_FOR_EACH_ENTRY
(
entry
,
&
queue
->
queue
,
struct
futex_entry
,
entry
)
LIST_FOR_EACH_ENTRY
_SAFE
(
entry
,
next
,
&
queue
->
queue
,
struct
futex_entry
,
entry
)
{
if
(
entry
->
addr
==
addr
)
{
entry
->
addr
=
NULL
;
list_remove
(
&
entry
->
entry
);
/* Try to buffer wakes, so that we don't make a system call while
* holding a spinlock. */
if
(
count
<
ARRAY_SIZE
(
tids
))
...
...
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