File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,10 +72,8 @@ to avoid the expense of doing their own locking).
7272/* The attached thread state for the current thread. */
7373_Py_thread_local PyThreadState * _Py_tss_tstate = NULL ;
7474
75- /* The bound gilstate for the current thread.
76- Basically, this is used for caching the right interpreter
77- for subsequent PyGILState_Ensure() calls. Despite the name,
78- this doesn't have much to do with the actual GIL. */
75+ /* The "bound" thread state used by PyGILState_Ensure(),
76+ also known as a "gilstate." */
7977_Py_thread_local PyThreadState * _Py_tss_gilstate = NULL ;
8078#endif
8179
@@ -126,10 +124,9 @@ _PyThreadState_GetCurrent(void)
126124
127125
128126//---------------------------------------------
129- // the GIL state bound to the current OS thread
127+ // The thread state used by PyGILState_Ensure()
130128//---------------------------------------------
131129
132-
133130/*
134131 The stored thread state is set by bind_tstate() (AKA PyThreadState_Bind().
135132
You can’t perform that action at this time.
0 commit comments