mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-43268: _Py_IsMainInterpreter() now expects interp (GH-24577)
The _Py_IsMainInterpreter() function now expects interp rather than tstate.
This commit is contained in:
parent
62078101ea
commit
101bf69ff1
9 changed files with 15 additions and 15 deletions
|
@ -1327,7 +1327,7 @@ PyThreadState_IsCurrent(PyThreadState *tstate)
|
|||
PyStatus
|
||||
_PyGILState_Init(PyThreadState *tstate)
|
||||
{
|
||||
if (!_Py_IsMainInterpreter(tstate)) {
|
||||
if (!_Py_IsMainInterpreter(tstate->interp)) {
|
||||
/* Currently, PyGILState is shared by all interpreters. The main
|
||||
* interpreter is responsible to initialize it. */
|
||||
return _PyStatus_OK();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue