Thanks to visit codestin.com Credit goes to github.com
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.
pycore_pystate.h
HAVE_THREAD_LOCAL
1 parent 364ae60 commit f5394c2Copy full SHA for f5394c2
1 file changed
Include/internal/pycore_pystate.h
@@ -89,7 +89,7 @@ _Py_ThreadCanHandleSignals(PyInterpreterState *interp)
89
/* Variable and static inline functions for in-line access to current thread
90
and interpreter state */
91
92
-#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
+#if !defined(Py_BUILD_CORE_MODULE)
93
extern _Py_thread_local PyThreadState *_Py_tss_tstate;
94
extern _Py_thread_local PyInterpreterState *_Py_tss_interp;
95
#endif
@@ -115,7 +115,7 @@ PyAPI_FUNC(PyThreadState *) _PyThreadState_GetCurrent(void);
115
static inline PyThreadState*
116
_PyThreadState_GET(void)
117
{
118
119
return _Py_tss_tstate;
120
#else
121
return _PyThreadState_GetCurrent();
0 commit comments