summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-13 10:35:37 (GMT)
committerGitHub <noreply@github.com>2019-05-13 10:35:37 (GMT)
commitd5d9e81ce9a7efc5bc14a5c21398d1ef6f626884 (patch)
tree0650e31fe590d6be19dc21546cd129d68139d4af /Include
parent3aef48e3157f52a8bcdbacf47a35d0016348735e (diff)
downloadcpython-d5d9e81ce9a7efc5bc14a5c21398d1ef6f626884.zip
cpython-d5d9e81ce9a7efc5bc14a5c21398d1ef6f626884.tar.gz
cpython-d5d9e81ce9a7efc5bc14a5c21398d1ef6f626884.tar.bz2
bpo-36728: Remove PyEval_ReInitThreads() from C API (GH-13241)
Remove the PyEval_ReInitThreads() function from the Python C API. It should not be called explicitly: use PyOS_AfterFork_Child() instead. Rename PyEval_ReInitThreads() to _PyEval_ReInitThreads() and add a 'runtime' parameter.
Diffstat (limited to 'Include')
-rw-r--r--Include/ceval.h1
-rw-r--r--Include/internal/pycore_ceval.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index 2d4b67d..8cdf353 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -195,7 +195,6 @@ PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2);
PyAPI_FUNC(void) PyEval_ReleaseLock(void) /* Py_DEPRECATED(3.2) */;
PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
-PyAPI_FUNC(void) PyEval_ReInitThreads(void);
#ifndef Py_LIMITED_API
PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index cdc73a3..7a3166e 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -24,6 +24,8 @@ PyAPI_FUNC(int) _PyEval_AddPendingCall(
void *arg);
PyAPI_FUNC(void) _PyEval_SignalAsyncExc(
struct _ceval_runtime_state *ceval);
+PyAPI_FUNC(void) _PyEval_ReInitThreads(
+ _PyRuntimeState *runtime);
#ifdef __cplusplus
}