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
8fc2430c
Commit
8fc2430c
authored
Jul 01, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jul 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement threadpool RaceDll environment variable.
parent
fa114f12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
threadpool.c
dlls/ntdll/threadpool.c
+9
-0
No files found.
dlls/ntdll/threadpool.c
View file @
8fc2430c
...
...
@@ -173,6 +173,7 @@ struct threadpool_object
PVOID
userdata
;
PTP_CLEANUP_GROUP_CANCEL_CALLBACK
group_cancel_callback
;
PTP_SIMPLE_CALLBACK
finalization_callback
;
HMODULE
race_dll
;
/* information about the group, locked via .group->cs */
struct
list
group_entry
;
BOOL
is_group_member
;
...
...
@@ -1374,6 +1375,7 @@ static void tp_object_initialize( struct threadpool_object *object, struct threa
object
->
userdata
=
userdata
;
object
->
group_cancel_callback
=
NULL
;
object
->
finalization_callback
=
NULL
;
object
->
race_dll
=
NULL
;
memset
(
&
object
->
group_entry
,
0
,
sizeof
(
object
->
group_entry
)
);
object
->
is_group_member
=
FALSE
;
...
...
@@ -1391,10 +1393,14 @@ static void tp_object_initialize( struct threadpool_object *object, struct threa
object
->
group
=
impl_from_TP_CLEANUP_GROUP
(
environment
->
CleanupGroup
);
object
->
group_cancel_callback
=
environment
->
CleanupGroupCancelCallback
;
object
->
finalization_callback
=
environment
->
FinalizationCallback
;
object
->
race_dll
=
environment
->
RaceDll
;
WARN
(
"environment not fully implemented yet
\n
"
);
}
if
(
object
->
race_dll
)
LdrAddRefDll
(
0
,
object
->
race_dll
);
TRACE
(
"allocated object %p of type %u
\n
"
,
object
,
object
->
type
);
/* For simple callbacks we have to run tp_object_submit before adding this object
...
...
@@ -1560,6 +1566,9 @@ static BOOL tp_object_release( struct threadpool_object *object )
tp_threadpool_unlock
(
object
->
pool
);
if
(
object
->
race_dll
)
LdrUnloadDll
(
object
->
race_dll
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
object
);
return
TRUE
;
}
...
...
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