Skip to content

Commit 0e93b03

Browse files
committed
Add a comment.
1 parent 4652f0d commit 0e93b03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Python/pystate.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ to avoid the expense of doing their own locking).
7171
#ifdef HAVE_THREAD_LOCAL
7272
/* The attached thread state for the current thread. */
7373
_Py_thread_local PyThreadState *_Py_tss_tstate = NULL;
74-
/* The bound gilstate for the current thread. */
74+
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. */
7579
_Py_thread_local PyThreadState *_Py_tss_gilstate = NULL;
7680
#endif
7781

0 commit comments

Comments
 (0)