File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -646,6 +646,14 @@ with sub-interpreters:
646646 :c:func:`PyGILState_Release` on the same thread.
647647
648648
649+ .. c:function:: PyThreadState PyGILState_GetThisThreadState()
650+
651+ Get the current thread state for this thread. May return ``NULL`` if no
652+ GILState API has been used on the current thread. Note that the main thread
653+ always has such a thread-state, even if no auto-thread-state call has been
654+ made on the main thread. This is mainly a helper/diagnostic function.
655+
656+
649657The following macros are normally used without a trailing semicolon; look for
650658example usage in the Python source distribution.
651659
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE);
197197
198198/* Helper/diagnostic function - get the current thread state for
199199 this thread. May return NULL if no GILState API has been used
200- on the current thread. Note the main thread always has such a
200+ on the current thread. Note that the main thread always has such a
201201 thread-state, even if no auto-thread-state call has been made
202202 on the main thread.
203203*/
You can’t perform that action at this time.
0 commit comments