diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-10 00:28:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 00:28:54 (GMT) |
commit | b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203 (patch) | |
tree | b00c42490d6d76a45ce9301cc1fe35fe78a8ff9e /Include | |
parent | 175a704abfcb3400aaeb66d4f098d92ca7e30892 (diff) | |
download | cpython-b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203.zip cpython-b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203.tar.gz cpython-b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203.tar.bz2 |
bpo-39877: Deprecate PyEval_InitThreads() (GH-18892)
Deprecated PyEval_InitThreads() and PyEval_ThreadsInitialized().
Calling PyEval_InitThreads() now does nothing.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/ceval.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index e977fcb..a70c421 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -128,8 +128,8 @@ PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(struct _frame *f, int exc); PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void); PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *); -PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); -PyAPI_FUNC(void) PyEval_InitThreads(void); +Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); +Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void); /* Py_DEPRECATED(3.2) */ PyAPI_FUNC(void) PyEval_ReleaseLock(void); PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); |