summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_runtime.h
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2020-04-14 16:16:24 (GMT)
committerGitHub <noreply@github.com>2020-04-14 16:16:24 (GMT)
commit62f75fe3dd138f72303814d27183aa469eefcca6 (patch)
tree9d9a3dc0356561974b26f17b65a0a0da18f4ad4d /Include/internal/pycore_runtime.h
parente5014be0497d06d78343623588a80f491a6f7b74 (diff)
downloadcpython-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_runtime.h')
-rw-r--r--Include/internal/pycore_runtime.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_runtime.h b/Include/internal/pycore_runtime.h
index 54dbaeb..995fe23 100644
--- a/Include/internal/pycore_runtime.h
+++ b/Include/internal/pycore_runtime.h
@@ -117,8 +117,9 @@ PyAPI_DATA(_PyRuntimeState) _PyRuntime;
PyAPI_FUNC(PyStatus) _PyRuntimeState_Init(_PyRuntimeState *runtime);
PyAPI_FUNC(void) _PyRuntimeState_Fini(_PyRuntimeState *runtime);
+#ifdef HAVE_FORK
PyAPI_FUNC(void) _PyRuntimeState_ReInitThreads(_PyRuntimeState *runtime);
-
+#endif
/* Initialize _PyRuntimeState.
Return NULL on success, or return an error message on failure. */