summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>2019-04-29 08:38:45 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-04-29 08:38:45 (GMT)
commitf781d202a2382731b43bade845a58d28a02e9ea1 (patch)
treeb86f74ef510093ef69e73143361afe52e9e7ba46 /Misc
parent254b309c801f82509597e3d7d4be56885ef94c11 (diff)
downloadcpython-f781d202a2382731b43bade845a58d28a02e9ea1.zip
cpython-f781d202a2382731b43bade845a58d28a02e9ea1.tar.gz
cpython-f781d202a2382731b43bade845a58d28a02e9ea1.tar.bz2
bpo-36475: Finalize PyEval_AcquireLock() and PyEval_AcquireThread() properly (GH-12667)
PyEval_AcquireLock() and PyEval_AcquireThread() now terminate the current thread if called while the interpreter is finalizing, making them consistent with PyEval_RestoreThread(), Py_END_ALLOW_THREADS, and PyGILState_Ensure().
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-04-02-20-02-22.bpo-36475.CjRps3.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-04-02-20-02-22.bpo-36475.CjRps3.rst b/Misc/NEWS.d/next/Core and Builtins/2019-04-02-20-02-22.bpo-36475.CjRps3.rst
new file mode 100644
index 0000000..6f09751
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-04-02-20-02-22.bpo-36475.CjRps3.rst
@@ -0,0 +1,4 @@
+:c:func:`PyEval_AcquireLock` and :c:func:`PyEval_AcquireThread` now
+terminate the current thread if called while the interpreter is
+finalizing, making them consistent with :c:func:`PyEval_RestoreThread`,
+:c:func:`Py_END_ALLOW_THREADS`, and :c:func:`PyGILState_Ensure`. \ No newline at end of file