summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-07-06 11:48:30 +0900
committerGitHub <noreply@github.com>2020-07-06 11:48:30 +0900
commit9ce8132e1f2339cfe116dfd4795574182c2245b4 (patch)
treea6980cc8547ab6a36a7d03f0998898047f30fd28
parentd12af71047f0eae86440654d3ea74c032c7c3558 (diff)
downloadcpython-git-9ce8132e1f2339cfe116dfd4795574182c2245b4.tar.gz
bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
-rw-r--r--Include/ceval.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index df5253900e..0f372e2044 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);