We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4652f0d commit 0e93b03Copy full SHA for 0e93b03
Python/pystate.c
@@ -71,7 +71,11 @@ to avoid the expense of doing their own locking).
71
#ifdef HAVE_THREAD_LOCAL
72
/* The attached thread state for the current thread. */
73
_Py_thread_local PyThreadState *_Py_tss_tstate = NULL;
74
-/* The bound gilstate for the current thread. */
+
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. */
79
_Py_thread_local PyThreadState *_Py_tss_gilstate = NULL;
80
#endif
81
0 commit comments