mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
gh-101758: Fix the wasm Buildbots (gh-101943)
They were broken by gh-101920. https://github.com/python/cpython/issues/101758
This commit is contained in:
parent
b365d88465
commit
3dea4ba6c1
2 changed files with 15 additions and 1 deletions
|
@ -197,6 +197,7 @@ gilstate_tss_clear(_PyRuntimeState *runtime)
|
|||
}
|
||||
|
||||
|
||||
#ifndef NDEBUG
|
||||
static inline int tstate_is_alive(PyThreadState *tstate);
|
||||
|
||||
static inline int
|
||||
|
@ -204,6 +205,7 @@ 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 *);
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -1127,6 +1130,7 @@ tstate_is_alive(PyThreadState *tstate)
|
|||
!tstate->_status.cleared &&
|
||||
!tstate->_status.finalizing);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue