mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
bpo-39877: Py_Initialize() pass tstate to PyEval_InitThreads() (GH-18884)
This commit is contained in:
parent
3225b9f973
commit
111e4ee52a
3 changed files with 28 additions and 9 deletions
|
@ -554,7 +554,10 @@ pycore_create_interpreter(_PyRuntimeState *runtime,
|
|||
_PyGILState_Init(tstate);
|
||||
|
||||
/* Create the GIL */
|
||||
PyEval_InitThreads();
|
||||
status = _PyEval_InitThreads(tstate);
|
||||
if (_PyStatus_EXCEPTION(status)) {
|
||||
return status;
|
||||
}
|
||||
|
||||
*tstate_p = tstate;
|
||||
return _PyStatus_OK();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue