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
014a8bb1
Commit
014a8bb1
authored
Dec 20, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not call thread attach/detach routines during process exit to avoid
potential deadlocks.
parent
cb0ce338
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
module.c
loader/module.c
+10
-1
No files found.
loader/module.c
View file @
014a8bb1
...
...
@@ -28,6 +28,7 @@ WINE_MODREF *MODULE_modref_list = NULL;
static
WINE_MODREF
*
exe_modref
;
static
int
free_lib_count
;
/* recursion depth of FreeLibrary calls */
static
int
process_detaching
;
/* set on process detach to avoid deadlocks with thread detach */
/*************************************************************************
* MODULE32_LookupHMODULE
...
...
@@ -215,7 +216,7 @@ void MODULE_DllProcessDetach( BOOL bForceDetach, LPVOID lpReserved )
WINE_MODREF
*
wm
;
RtlAcquirePebLock
();
if
(
bForceDetach
)
process_detaching
=
1
;
do
{
for
(
wm
=
MODULE_modref_list
;
wm
;
wm
=
wm
->
next
)
...
...
@@ -250,6 +251,10 @@ void MODULE_DllThreadAttach( LPVOID lpReserved )
{
WINE_MODREF
*
wm
;
/* don't do any attach calls if process is exiting */
if
(
process_detaching
)
return
;
/* FIXME: there is still a race here */
RtlAcquirePebLock
();
for
(
wm
=
MODULE_modref_list
;
wm
;
wm
=
wm
->
next
)
...
...
@@ -280,6 +285,10 @@ void MODULE_DllThreadDetach( LPVOID lpReserved )
{
WINE_MODREF
*
wm
;
/* don't do any detach calls if process is exiting */
if
(
process_detaching
)
return
;
/* FIXME: there is still a race here */
RtlAcquirePebLock
();
for
(
wm
=
MODULE_modref_list
;
wm
;
wm
=
wm
->
next
)
...
...
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