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 @@ -195,7 +195,7 @@ PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE);
195195
196196/* Helper/diagnostic function - get the current thread state for
197197 this thread. May return NULL if no GILState API has been used
198- on the current thread. Note the main thread always has such a
198+ on the current thread. Note that the main thread always has such a
199199 thread-state, even if no auto-thread-state call has been made
200200 on the main thread.
201201*/
You can’t perform that action at this time.
0 commit comments