mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
bpo-43760: Rename _PyThreadState_DisableTracing() (GH-29032)
* Rename _PyThreadState_DisableTracing() to _PyThreadState_PauseTracing() * Rename _PyThreadState_ResetTracing() to _PyThreadState_ResumeTracing()
This commit is contained in:
parent
70945d57e7
commit
034f607906
3 changed files with 11 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue