[3.13] gh-115145: Update documentation about `PyThreadState_DeleteCurrent` (gh-124920) (#124930)

gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)
(cherry picked from commit 9eeb21bf76)

Co-authored-by: Donghee Na <donghee.na@python.org>
This commit is contained in:
Miss Islington (bot) 2024-10-03 17:54:56 +02:00 committed by GitHub
parent e6fb7fa76b
commit bde4ae10ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1218,7 +1218,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
.. c:function:: void PyThreadState_DeleteCurrent(void) .. c:function:: void PyThreadState_DeleteCurrent(void)
Destroy the current thread state and release the global interpreter lock. Destroy the current thread state and release the global interpreter lock.
Like :c:func:`PyThreadState_Delete`, the global interpreter lock need not Like :c:func:`PyThreadState_Delete`, the global interpreter lock must
be held. The thread state must have been reset with a previous call be held. The thread state must have been reset with a previous call
to :c:func:`PyThreadState_Clear`. to :c:func:`PyThreadState_Clear`.