Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ typedef struct {
PyAPI_FUNC(int) Py_Is(PyObject *x, PyObject *y);
#define Py_Is(x, y) ((x) == (y))

#ifndef Py_LIMITED_API
#if defined(Py_NOGIL) && !defined(Py_LIMITED_API)
static inline uintptr_t
_Py_ThreadId(void)
{
Expand Down Expand Up @@ -259,9 +259,7 @@ _Py_ThreadId(void)
#endif
return tid;
}
#endif

#if defined(Py_NOGIL) && !defined(Py_LIMITED_API)
static inline Py_ALWAYS_INLINE int
_Py_IsOwnedByCurrentThread(PyObject *ob)
{
Expand Down