Skip to content

Commit 9ce8132

Browse files
authored
bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
1 parent d12af71 commit 9ce8132

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎Include/ceval.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,12 @@ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
128128

129129
Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
130130
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
131+
/* PyEval_AcquireLock() and PyEval_ReleaseLock() are part of stable ABI.
132+
* They will be removed from this header file in the future version.
133+
* But they will be remained in ABI until Python 4.0.
134+
*/
131135
Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void);
132-
/* Py_DEPRECATED(3.2) */ PyAPI_FUNC(void) PyEval_ReleaseLock(void);
136+
Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_ReleaseLock(void);
133137
PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
134138
PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
135139

0 commit comments

Comments
 (0)