File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 44
55#define PYTHREAD_INVALID_THREAD_ID ((unsigned long)-1)
66
7- #ifdef HAVE_FORK
8- /* Private function to reinitialize a lock at fork in the child process.
9- Reset the lock to the unlocked state.
10- Return 0 on success, return -1 on error. */
11- PyAPI_FUNC (int ) _PyThread_at_fork_reinit (PyThread_type_lock * lock );
12- #endif /* HAVE_FORK */
13-
147#ifdef HAVE_PTHREAD_H
158 /* Darwin needs pthread.h to know type name the pthread_key_t. */
169# include <pthread.h>
Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ struct _pythread_runtime_state {
7575};
7676
7777
78+ #ifdef HAVE_FORK
79+ /* Private function to reinitialize a lock at fork in the child process.
80+ Reset the lock to the unlocked state.
81+ Return 0 on success, return -1 on error. */
82+ extern int _PyThread_at_fork_reinit (PyThread_type_lock * lock );
83+ #endif /* HAVE_FORK */
84+
85+
7886#ifdef __cplusplus
7987}
8088#endif
You can’t perform that action at this time.
0 commit comments