summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-02-19 12:33:31 (GMT)
committerGitHub <noreply@github.com>2021-02-19 12:33:31 (GMT)
commit101bf69ff18a946fed7c274f088878aaf85174cc (patch)
tree40aad6b5b086f5eae0135cd9f695365af3be5a2a /Include
parent62078101ea1be5d2fc472a3f0d9d135e0bd5cd38 (diff)
downloadcpython-101bf69ff18a946fed7c274f088878aaf85174cc.zip
cpython-101bf69ff18a946fed7c274f088878aaf85174cc.tar.gz
cpython-101bf69ff18a946fed7c274f088878aaf85174cc.tar.bz2
bpo-43268: _Py_IsMainInterpreter() now expects interp (GH-24577)
The _Py_IsMainInterpreter() function now expects interp rather than tstate.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_pystate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h
index 0cd5550..4b894f3 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -22,11 +22,11 @@ _Py_IsMainThread(void)
static inline int
-_Py_IsMainInterpreter(PyThreadState* tstate)
+_Py_IsMainInterpreter(PyInterpreterState *interp)
{
/* Use directly _PyRuntime rather than tstate->interp->runtime, since
this function is used in performance critical code path (ceval) */
- return (tstate->interp == _PyRuntime.interpreters.main);
+ return (interp == _PyRuntime.interpreters.main);
}