Skip to content

Commit 453a468

Browse files
committed
Fix some of the comments.
1 parent a3c2292 commit 453a468

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Python/pystate.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)