gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)

This commit is contained in:
Donghee Na 2024-10-03 19:34:47 +09:00 committed by GitHub
parent 656b7a3c83
commit 9eeb21bf76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1265,7 +1265,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
.. c:function:: void PyThreadState_DeleteCurrent(void)
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
to :c:func:`PyThreadState_Clear`.