mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
PyOS_AfterFork_Child() pass tstate to _PyEval_ReInitThreads() (GH-20598)
This commit is contained in:
parent
45b34a04a5
commit
317bab0bf6
3 changed files with 9 additions and 6 deletions
|
@ -436,10 +436,9 @@ PyEval_ReleaseThread(PyThreadState *tstate)
|
|||
which are not running in the child process, and clear internal locks
|
||||
which might be held by those threads. */
|
||||
PyStatus
|
||||
_PyEval_ReInitThreads(_PyRuntimeState *runtime)
|
||||
_PyEval_ReInitThreads(PyThreadState *tstate)
|
||||
{
|
||||
PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime);
|
||||
_Py_EnsureTstateNotNULL(tstate);
|
||||
_PyRuntimeState *runtime = tstate->interp->runtime;
|
||||
|
||||
#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
|
||||
struct _gil_runtime_state *gil = &tstate->interp->ceval.gil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue