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 767c894 commit 38a2153Copy full SHA for 38a2153
1 file changed
Include/pystate.h
@@ -127,9 +127,7 @@ PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
127
typedef struct PyInterpreterGuard PyInterpreterGuard;
128
typedef struct PyInterpreterView PyInterpreterView;
129
130
-// CPython detail: this struct is not defined anywhere; tokens are special
131
-// sentinels or PyThreadState's.
132
-typedef struct PyThreadStateToken PyThreadStateToken;
+typedef void PyThreadStateToken;
133
134
PyAPI_FUNC(PyInterpreterGuard *) PyInterpreterGuard_FromCurrent(void);
135
PyAPI_FUNC(void) PyInterpreterGuard_Close(PyInterpreterGuard *guard);
0 commit comments