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.
1 parent bca3305 commit 55df2deCopy full SHA for 55df2de
Include/object.h
@@ -231,7 +231,7 @@ typedef struct {
231
PyAPI_FUNC(int) Py_Is(PyObject *x, PyObject *y);
232
#define Py_Is(x, y) ((x) == (y))
233
234
-#ifndef Py_LIMITED_API
+#if defined(Py_NOGIL) && !defined(Py_LIMITED_API)
235
static inline uintptr_t
236
_Py_ThreadId(void)
237
{
@@ -259,9 +259,7 @@ _Py_ThreadId(void)
259
#endif
260
return tid;
261
}
262
-#endif
263
264
-#if defined(Py_NOGIL) && !defined(Py_LIMITED_API)
265
static inline Py_ALWAYS_INLINE int
266
_Py_IsOwnedByCurrentThread(PyObject *ob)
267
0 commit comments