File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ bind_tstate(PyThreadState *tstate)
190
190
assert (tstate != NULL );
191
191
assert (tstate_is_alive (tstate ) && !tstate -> _status .bound );
192
192
assert (!tstate -> _status .unbound ); // just in case
193
+ assert (!tstate -> _status .active );
193
194
assert (tstate -> thread_id == 0 );
194
195
assert (tstate -> native_thread_id == 0 );
195
196
_PyRuntimeState * runtime = tstate -> interp -> runtime ;
@@ -231,6 +232,7 @@ unbind_tstate(PyThreadState *tstate)
231
232
assert (tstate != NULL );
232
233
assert (tstate_is_bound (tstate ));
233
234
// XXX assert(tstate_is_alive(tstate) && tstate_is_bound(tstate));
235
+ // XXX assert(!tstate->_status.active);
234
236
assert (tstate -> thread_id > 0 );
235
237
#ifdef PY_HAVE_THREAD_NATIVE_ID
236
238
assert (tstate -> native_thread_id > 0 );
You can’t perform that action at this time.
0 commit comments