diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-07-06 03:25:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 03:25:14 (GMT) |
commit | 1ce59f0421d9550762977454bda22db750aa20aa (patch) | |
tree | 3bcfc2294f42e26a6727e3f7904525ca1bbfb351 | |
parent | 00c09f06a4cf1e352c6ab0c9b9e6074e52f44ae1 (diff) | |
download | cpython-1ce59f0421d9550762977454bda22db750aa20aa.zip cpython-1ce59f0421d9550762977454bda22db750aa20aa.tar.gz cpython-1ce59f0421d9550762977454bda22db750aa20aa.tar.bz2 |
bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
(cherry picked from commit 9ce8132e1f2339cfe116dfd4795574182c2245b4)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
-rw-r--r-- | Include/ceval.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index df52539..0f372e2 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -128,8 +128,12 @@ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *); Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); +/* PyEval_AcquireLock() and PyEval_ReleaseLock() are part of stable ABI. + * They will be removed from this header file in the future version. + * But they will be remained in ABI until Python 4.0. + */ Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void); -/* Py_DEPRECATED(3.2) */ PyAPI_FUNC(void) PyEval_ReleaseLock(void); +Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_ReleaseLock(void); PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate); |