mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
bpo-39984: Pass tstate to _PyEval_SignalAsyncExc() (GH-19049)
_PyEval_SignalAsyncExc() and _PyEval_FiniThreads() now expect tstate, instead of ceval.
This commit is contained in:
parent
611836a69a
commit
56bfdebfb1
5 changed files with 30 additions and 26 deletions
|
@ -548,7 +548,7 @@ pycore_create_interpreter(_PyRuntimeState *runtime,
|
|||
another running thread (see issue #9901).
|
||||
Instead we destroy the previously created GIL here, which ensures
|
||||
that we can call Py_Initialize / Py_FinalizeEx multiple times. */
|
||||
_PyEval_FiniThreads(&runtime->ceval);
|
||||
_PyEval_FiniThreads(tstate);
|
||||
|
||||
/* Auto-thread-state API */
|
||||
status = _PyGILState_Init(tstate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue