@@ -963,7 +963,7 @@ a file, so that other Python threads can run in the meantime.
963963
964964The Python interpreter keeps some thread-specific bookkeeping information
965965inside a data structure called :c:type:`PyThreadState`, known as a :term:`thread state`.
966- There's also one :term:`thread-local variable <active thread state>` pointing to the
966+ There's also one :term:`thread-local variable <current thread state>` pointing to the
967967current :c:type:`PyThreadState`: it can be retrieved using :c:func:`PyThreadState_Get`.
968968
969969A thread can only have one :term:`attached thread state` at a time. An attached
@@ -1204,13 +1204,13 @@ code, or when embedding the Python interpreter:
12041204
12051205.. c:function:: PyThreadState* PyEval_SaveThread()
12061206
1207- Detach the :term:`active thread state` (if it has been created) and
1207+ Detach the :term:`current thread state` (if it has been created) and
12081208 return it.
12091209
12101210
12111211.. c:function:: void PyEval_RestoreThread(PyThreadState *tstate)
12121212
1213- Set the :term:`active thread state` to *tstate*, which must not be ``NULL``.
1213+ Set the :term:`current thread state` to *tstate*, which must not be ``NULL``.
12141214 The passed :term:`thread state` **should not** be :term:`attached <attached thread state>`,
12151215 otherwise deadlock ensues.
12161216
@@ -1226,7 +1226,7 @@ code, or when embedding the Python interpreter:
12261226
12271227.. c:function:: PyThreadState* PyThreadState_Get()
12281228
1229- Return the :term:`active thread state`. If the :term:`active thread state` is ``NULL``
1229+ Return the :term:`current thread state`. If the :term:`current thread state` is ``NULL``
12301230 (such as when inside of :c:macro:`Py_BEGIN_ALLOW_THREADS` block), then this issues a fatal
12311231 error (so that the caller needn't check for ``NULL``).
12321232
@@ -1246,13 +1246,13 @@ code, or when embedding the Python interpreter:
12461246
12471247.. c:function:: PyThreadState* PyThreadState_Swap(PyThreadState *tstate)
12481248
1249- Set the :term:`active thread state` to *tstate*, and return
1249+ Set the :term:`current thread state` to *tstate*, and return
12501250 the old value.
12511251
12521252 If there is an :term:`attached thread state` for the current
12531253 thread, it will be detached. Upon returning from this function,
12541254 *tstate* will become :term:`attached <attached thread state>` instead
1255- if it's not ``NULL``. If it is ``NULL``, then the :term:`active thread state`
1255+ if it's not ``NULL``. If it is ``NULL``, then the :term:`current thread state`
12561256 will be ``NULL``.
12571257
12581258
@@ -1304,7 +1304,7 @@ with sub-interpreters:
13041304
13051305.. c:function:: PyThreadState* PyGILState_GetThisThreadState()
13061306
1307- Get the :term:`active thread state` for this thread. May return ``NULL`` if no
1307+ Get the :term:`current thread state` for this thread. May return ``NULL`` if no
13081308 GILState API has been used on the current thread. Note that the main thread
13091309 always has such a thread-state, even if no auto-thread-state call has been
13101310 made on the main thread. This is mainly a helper/diagnostic function.
@@ -1419,7 +1419,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
14191419
14201420.. c:function:: void PyThreadState_DeleteCurrent(void)
14211421
1422- Destroy the :term:`attached thread state` and set the :term:`active thread state`
1422+ Destroy the :term:`attached thread state` and set the :term:`current thread state`
14231423 to ``NULL``. The :term:`thread state <attached thread state>` must have been reset
14241424 with a previous call to :c:func:`PyThreadState_Clear`.
14251425
0 commit comments