File tree 2 files changed +8
-7
lines changed 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#define PYTHREAD_INVALID_THREAD_ID ((unsigned long)-1)
6
6
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
-
14
7
#ifdef HAVE_PTHREAD_H
15
8
/* Darwin needs pthread.h to know type name the pthread_key_t. */
16
9
# include <pthread.h>
Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ struct _pythread_runtime_state {
75
75
};
76
76
77
77
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
+
78
86
#ifdef __cplusplus
79
87
}
80
88
#endif
You can’t perform that action at this time.
0 commit comments