diff options
author | Steve Dower <steve.dower@python.org> | 2022-11-17 00:24:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 00:24:16 (GMT) |
commit | 5fdd49dc653b4c14e3303c1eefd9d031602bbbf5 (patch) | |
tree | 65d5666b8c9ce47d2c4472631efd49d860456e6a /Doc | |
parent | bc390dd93574c3c6773958c6a7e68adc83d0bf3f (diff) | |
download | cpython-5fdd49dc653b4c14e3303c1eefd9d031602bbbf5.zip cpython-5fdd49dc653b4c14e3303c1eefd9d031602bbbf5.tar.gz cpython-5fdd49dc653b4c14e3303c1eefd9d031602bbbf5.tar.bz2 |
gh-99377: Revert audit events for thread state creation and free, because the GIL is not properly held at these times (GH-99543)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/init.rst | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 273838c..afb1771 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -1239,25 +1239,12 @@ All of the following functions must be called after :c:func:`Py_Initialize`. The global interpreter lock need not be held, but may be held if it is necessary to serialize calls to this function. - .. audit-event:: cpython.PyThreadState_New id c.PyThreadState_New - - Raise an auditing event ``cpython.PyThreadState_New`` with Python's thread - id as the argument. The event will be raised from the thread creating the new - ``PyThreadState``, which may not be the new thread. - .. c:function:: void PyThreadState_Clear(PyThreadState *tstate) Reset all information in a thread state object. The global interpreter lock must be held. - .. audit-event:: cpython.PyThreadState_Clear id c.PyThreadState_Clear - - Raise an auditing event ``cpython.PyThreadState_Clear`` with Python's - thread id as the argument. The event may be raised from a different thread - than the one being cleared. Exceptions raised from a hook will be treated - as unraisable and will not abort the operation. - .. versionchanged:: 3.9 This function now calls the :c:member:`PyThreadState.on_delete` callback. Previously, that happened in :c:func:`PyThreadState_Delete`. |