Skip to content

Commit 8c5596a

Browse files
Associate "bound" and "active".
1 parent 0b880c7 commit 8c5596a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/pystate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ bind_tstate(PyThreadState *tstate)
190190
assert(tstate != NULL);
191191
assert(tstate_is_alive(tstate) && !tstate->_status.bound);
192192
assert(!tstate->_status.unbound); // just in case
193+
assert(!tstate->_status.active);
193194
assert(tstate->thread_id == 0);
194195
assert(tstate->native_thread_id == 0);
195196
_PyRuntimeState *runtime = tstate->interp->runtime;
@@ -231,6 +232,7 @@ unbind_tstate(PyThreadState *tstate)
231232
assert(tstate != NULL);
232233
assert(tstate_is_bound(tstate));
233234
// XXX assert(tstate_is_alive(tstate) && tstate_is_bound(tstate));
235+
// XXX assert(!tstate->_status.active);
234236
assert(tstate->thread_id > 0);
235237
#ifdef PY_HAVE_THREAD_NATIVE_ID
236238
assert(tstate->native_thread_id > 0);

0 commit comments

Comments
 (0)