mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-136003: Execute pre-finalization callbacks in a loop (GH-136004)
This commit is contained in:
parent
d6a6fe2a5b
commit
2191497933
9 changed files with 281 additions and 43 deletions
|
|
@ -1461,7 +1461,7 @@ init_threadstate(_PyThreadStateImpl *_tstate,
|
|||
assert(tstate->prev == NULL);
|
||||
|
||||
assert(tstate->_whence == _PyThreadState_WHENCE_NOTSET);
|
||||
assert(whence >= 0 && whence <= _PyThreadState_WHENCE_EXEC);
|
||||
assert(whence >= 0 && whence <= _PyThreadState_WHENCE_THREADING_DAEMON);
|
||||
tstate->_whence = whence;
|
||||
|
||||
assert(id > 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue