Skip to content

Commit 6d80b02

Browse files
committed
Change term for PyMutex_Lock
1 parent 2785c1d commit 6d80b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/init.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,7 @@ CPython C level APIs are similar to those offered by pthreads and Windows:
22152215
use a thread key and functions to associate a :c:expr:`void*` value per
22162216
thread.
22172217
2218-
The GIL does *not* need to be held when calling these functions; they supply
2218+
A :term:`thread state` does *not* need to be active when calling these functions; they supply
22192219
their own locking.
22202220
22212221
Note that :file:`Python.h` does not include the declaration of the TLS APIs,
@@ -2385,7 +2385,7 @@ The C-API provides a basic mutual exclusion lock.
23852385
23862386
Lock mutex *m*. If another thread has already locked it, the calling
23872387
thread will block until the mutex is unlocked. While blocked, the thread
2388-
will temporarily release the :term:`GIL` if it is held.
2388+
will temporarily detach the current :term:`thread state` if one is active.
23892389
23902390
.. versionadded:: 3.13
23912391

0 commit comments

Comments
 (0)