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
8d1462b6
Commit
8d1462b6
authored
Nov 07, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pthread_atfork: don't call critical section functions before
initialization is done.
parent
278b3f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pthread.c
scheduler/pthread.c
+2
-2
No files found.
scheduler/pthread.c
View file @
8d1462b6
...
@@ -124,13 +124,13 @@ int __pthread_atfork(void (*prepare)(void),
...
@@ -124,13 +124,13 @@ int __pthread_atfork(void (*prepare)(void),
void
(
*
parent
)(
void
),
void
(
*
parent
)(
void
),
void
(
*
child
)(
void
))
void
(
*
child
)(
void
))
{
{
EnterCriticalSection
(
&
atfork_section
);
if
(
SystemHeap
)
EnterCriticalSection
(
&
atfork_section
);
assert
(
atfork_count
<
MAX_ATFORK
);
assert
(
atfork_count
<
MAX_ATFORK
);
atfork_prepare
[
atfork_count
]
=
prepare
;
atfork_prepare
[
atfork_count
]
=
prepare
;
atfork_parent
[
atfork_count
]
=
parent
;
atfork_parent
[
atfork_count
]
=
parent
;
atfork_child
[
atfork_count
]
=
child
;
atfork_child
[
atfork_count
]
=
child
;
atfork_count
++
;
atfork_count
++
;
LeaveCriticalSection
(
&
atfork_section
);
if
(
SystemHeap
)
LeaveCriticalSection
(
&
atfork_section
);
return
0
;
return
0
;
}
}
strong_alias
(
__pthread_atfork
,
pthread_atfork
);
strong_alias
(
__pthread_atfork
,
pthread_atfork
);
...
...
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