summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_pystate.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-18 16:40:43 (GMT)
committerGitHub <noreply@github.com>2021-10-18 16:40:43 (GMT)
commit034f607906de6e375cc9a98cc3b09f6d56f8be10 (patch)
tree3b8e4b75e0af14d6e14079ce9d5388783a40c012 /Include/internal/pycore_pystate.h
parent70945d57e775b335eb58b734d82e68484063e835 (diff)
downloadcpython-034f607906de6e375cc9a98cc3b09f6d56f8be10.zip
cpython-034f607906de6e375cc9a98cc3b09f6d56f8be10.tar.gz
cpython-034f607906de6e375cc9a98cc3b09f6d56f8be10.tar.bz2
bpo-43760: Rename _PyThreadState_DisableTracing() (GH-29032)
* Rename _PyThreadState_DisableTracing() to _PyThreadState_PauseTracing() * Rename _PyThreadState_ResetTracing() to _PyThreadState_ResumeTracing()
Diffstat (limited to 'Include/internal/pycore_pystate.h')
-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 d632397..9a570b0 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -134,13 +134,13 @@ PyAPI_FUNC(void) _PyThreadState_DeleteExcept(
PyThreadState *tstate);
static inline void
-_PyThreadState_DisableTracing(PyThreadState *tstate)
+_PyThreadState_PauseTracing(PyThreadState *tstate)
{
tstate->cframe->use_tracing = 0;
}
static inline void
-_PyThreadState_ResetTracing(PyThreadState *tstate)
+_PyThreadState_ResumeTracing(PyThreadState *tstate)
{
int use_tracing = (tstate->c_tracefunc != NULL
|| tstate->c_profilefunc != NULL);