summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-04-17 13:01:28 (GMT)
committerGitHub <noreply@github.com>2024-04-17 13:01:28 (GMT)
commit75eed5b3734edb221cabb8322d8b8bdf9e3ee6b1 (patch)
tree3643d638122610332a88ff62c02dcb968b5d6508 /Include
parent6d0bb43232dd6ebc5245daa4fe29f07f815f0bad (diff)
downloadcpython-75eed5b3734edb221cabb8322d8b8bdf9e3ee6b1.zip
cpython-75eed5b3734edb221cabb8322d8b8bdf9e3ee6b1.tar.gz
cpython-75eed5b3734edb221cabb8322d8b8bdf9e3ee6b1.tar.bz2
gh-117929: Restore removed PyEval_InitThreads() function (#117931)
Diffstat (limited to 'Include')
-rw-r--r--Include/ceval.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index 9885bdb..8ea9da8 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -107,6 +107,8 @@ PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(PyFrameObject *f, int exc);
PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void);
PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
+Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
+
PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);