Skip to content

Commit a761c4a

Browse files
committed
Change term for raw clock functions
1 parent d58b74f commit a761c4a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/c-api/time.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,29 +78,29 @@ Raw Clock Functions
7878
-------------------
7979
8080
Similar to clock functions, but don't set an exception on error and don't
81-
require the caller to hold the GIL.
81+
require the caller to have an active :term:`thread state`.
8282
8383
On success, the functions return ``0``.
8484
8585
On failure, they set ``*result`` to ``0`` and return ``-1``, *without* setting
86-
an exception. To get the cause of the error, acquire the GIL and call the
86+
an exception. To get the cause of the error, attach a :term:`thread state`, and call the
8787
regular (non-``Raw``) function. Note that the regular function may succeed after
8888
the ``Raw`` one failed.
8989
9090
.. c:function:: int PyTime_MonotonicRaw(PyTime_t *result)
9191
9292
Similar to :c:func:`PyTime_Monotonic`,
93-
but don't set an exception on error and don't require holding the GIL.
93+
but don't set an exception on error and don't require an active :term:`thread state`.
9494
9595
.. c:function:: int PyTime_PerfCounterRaw(PyTime_t *result)
9696
9797
Similar to :c:func:`PyTime_PerfCounter`,
98-
but don't set an exception on error and don't require holding the GIL.
98+
but don't set an exception on error and don't require an active :term:`thread state`.
9999
100100
.. c:function:: int PyTime_TimeRaw(PyTime_t *result)
101101
102102
Similar to :c:func:`PyTime_Time`,
103-
but don't set an exception on error and don't require holding the GIL.
103+
but don't set an exception on error and don't require an active :term:`thread state`.
104104
105105
106106
Conversion functions

0 commit comments

Comments
 (0)