diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-12-07 17:26:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 17:26:29 -0700 |
commit | 1f384e318481532323bb9076f4447bc02da07209 (patch) | |
tree | 41a6930e45fffdae2fa98b83fc1c94f3087115bd /Include | |
parent | 9b577cd01f66512b503115c0fdbf0734edfd5f8a (diff) | |
download | cpython-git-1f384e318481532323bb9076f4447bc02da07209.tar.gz |
bpo-46008: Stop calling _PyThreadState_Init() in new_threadstate(). (gh-29973)
This simplifies new_threadstate(). We also rename _PyThreadState_Init() to _PyThreadState_SetCurrent() to reflect what it actually does.
https://bugs.python.org/issue46008
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pystate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index 9a570b08bc..f139fa96f5 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -127,6 +127,8 @@ static inline PyInterpreterState* _PyInterpreterState_GET(void) { // PyThreadState functions +PyAPI_FUNC(void) _PyThreadState_SetCurrent(PyThreadState *tstate); +// We keep this around exclusively for stable ABI compatibility. PyAPI_FUNC(void) _PyThreadState_Init( PyThreadState *tstate); PyAPI_FUNC(void) _PyThreadState_DeleteExcept( |