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
cfff3306
Commit
cfff3306
authored
May 12, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtworkq: Release thread pool work object when work_item is destroyed (Valgrind).
parent
f85c5f1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
queue.c
dlls/rtworkq/queue.c
+5
-3
No files found.
dlls/rtworkq/queue.c
View file @
cfff3306
...
...
@@ -131,6 +131,7 @@ struct work_item
RTWQWORKITEM_KEY
key
;
LONG
priority
;
DWORD
flags
;
TP_WORK
*
work_object
;
PTP_SIMPLE_CALLBACK
finalization_callback
;
union
{
...
...
@@ -374,7 +375,6 @@ static void pool_queue_submit(struct queue *queue, struct work_item *item)
{
TP_CALLBACK_PRIORITY
callback_priority
;
TP_CALLBACK_ENVIRON_V3
env
;
TP_WORK
*
work_object
;
if
(
item
->
priority
==
0
)
callback_priority
=
TP_CALLBACK_PRIORITY_NORMAL
;
...
...
@@ -389,8 +389,8 @@ static void pool_queue_submit(struct queue *queue, struct work_item *item)
we need finalization callback. */
if
(
item
->
finalization_callback
)
IUnknown_AddRef
(
&
item
->
IUnknown_iface
);
work_object
=
CreateThreadpoolWork
(
standard_queue_worker
,
item
,
(
TP_CALLBACK_ENVIRON
*
)
&
env
);
SubmitThreadpoolWork
(
work_object
);
item
->
work_object
=
CreateThreadpoolWork
(
standard_queue_worker
,
item
,
(
TP_CALLBACK_ENVIRON
*
)
&
env
);
SubmitThreadpoolWork
(
item
->
work_object
);
TRACE
(
"dispatched %p.
\n
"
,
item
->
result
);
}
...
...
@@ -551,6 +551,8 @@ static ULONG WINAPI work_item_Release(IUnknown *iface)
if
(
!
refcount
)
{
if
(
item
->
work_object
)
CloseThreadpoolWork
(
item
->
work_object
);
if
(
item
->
reply_result
)
IRtwqAsyncResult_Release
(
item
->
reply_result
);
IRtwqAsyncResult_Release
(
item
->
result
);
...
...
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