Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Silence some warnings.
  • Loading branch information
ericsnowcurrently committed Feb 16, 2023
commit dbd532893a1499ed50ecb3bbf4ec6cf57752fc56
4 changes: 4 additions & 0 deletions Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,15 @@ gilstate_tss_clear(_PyRuntimeState *runtime)
}


#ifndef NDEBUG
static inline int tstate_is_alive(PyThreadState *tstate);

static inline int
tstate_is_bound(PyThreadState *tstate)
{
return tstate->_status.bound && !tstate->_status.unbound;
}
#endif // !NDEBUG

static void bind_gilstate_tstate(PyThreadState *);
static void unbind_gilstate_tstate(PyThreadState *);
Expand Down Expand Up @@ -1119,6 +1121,7 @@ _PyInterpreterState_LookUpID(int64_t requested_id)
/* the per-thread runtime state */
/********************************/

#ifndef NDEBUG
static inline int
tstate_is_alive(PyThreadState *tstate)
{
Expand All @@ -1127,6 +1130,7 @@ tstate_is_alive(PyThreadState *tstate)
!tstate->_status.cleared &&
!tstate->_status.finalizing);
}
#endif


//----------
Expand Down