summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-13 12:35:37 +0200
committerGitHub <noreply@github.com>2019-05-13 12:35:37 +0200
commitd5d9e81ce9a7efc5bc14a5c21398d1ef6f626884 (patch)
tree0650e31fe590d6be19dc21546cd129d68139d4af /Python/ceval.c
parent3aef48e3157f52a8bcdbacf47a35d0016348735e (diff)
downloadcpython-git-d5d9e81ce9a7efc5bc14a5c21398d1ef6f626884.tar.gz
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 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 17439533a3..1bb4704572 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -289,9 +289,8 @@ PyEval_ReleaseThread(PyThreadState *tstate)
*/
void
-PyEval_ReInitThreads(void)
+_PyEval_ReInitThreads(_PyRuntimeState *runtime)
{
- _PyRuntimeState *runtime = &_PyRuntime;
struct _ceval_runtime_state *ceval = &runtime->ceval;
if (!gil_created(&ceval->gil)) {
return;