mirror of
https://github.com/python/cpython.git
synced 2025-11-09 18:11:38 +00:00
[3.13] Docs: C API: Fix the incorrect PyThreadState_Swap documentation (#133900)
This commit is contained in:
parent
06a8c0613e
commit
8d92823eca
1 changed files with 3 additions and 2 deletions
|
|
@ -1190,9 +1190,10 @@ code, or when embedding the Python interpreter:
|
|||
.. c:function:: PyThreadState* PyThreadState_Swap(PyThreadState *tstate)
|
||||
|
||||
Swap the current thread state with the thread state given by the argument
|
||||
*tstate*, which may be ``NULL``. The global interpreter lock must be held
|
||||
and is not released.
|
||||
*tstate*, which may be ``NULL``.
|
||||
|
||||
The :term:`GIL` does not need to be held, but will be held upon returning
|
||||
if *tstate* is non-``NULL``.
|
||||
|
||||
The following functions use thread-local storage, and are not compatible
|
||||
with sub-interpreters:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue