diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2020-04-14 16:16:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 16:16:24 (GMT) |
commit | 62f75fe3dd138f72303814d27183aa469eefcca6 (patch) | |
tree | 9d9a3dc0356561974b26f17b65a0a0da18f4ad4d /Include/internal/pycore_ceval.h | |
parent | e5014be0497d06d78343623588a80f491a6f7b74 (diff) | |
download | cpython-62f75fe3dd138f72303814d27183aa469eefcca6.zip cpython-62f75fe3dd138f72303814d27183aa469eefcca6.tar.gz cpython-62f75fe3dd138f72303814d27183aa469eefcca6.tar.bz2 |
bpo-40232: Update PyOS_AfterFork_Child() to use _PyThread_at_fork_reinit() (GH-19450)
Diffstat (limited to 'Include/internal/pycore_ceval.h')
-rw-r--r-- | Include/internal/pycore_ceval.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h index 298018a..050dd59 100644 --- a/Include/internal/pycore_ceval.h +++ b/Include/internal/pycore_ceval.h @@ -25,8 +25,9 @@ PyAPI_FUNC(int) _PyEval_AddPendingCall( int (*func)(void *), void *arg); PyAPI_FUNC(void) _PyEval_SignalAsyncExc(PyThreadState *tstate); -PyAPI_FUNC(void) _PyEval_ReInitThreads( - struct pyruntimestate *runtime); +#ifdef HAVE_FORK +extern void _PyEval_ReInitThreads(struct pyruntimestate *runtime); +#endif PyAPI_FUNC(void) _PyEval_SetCoroutineOriginTrackingDepth( PyThreadState *tstate, int new_depth); |