]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112538: Add internal-only _PyThreadStateImpl "wrapper" for PyThreadState (gh-112560)
authorSam Gross <colesbury@gmail.com>
Thu, 7 Dec 2023 19:11:45 +0000 (14:11 -0500)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2023 19:11:45 +0000 (12:11 -0700)
commitdb460735af7503984d1b7d878069722db44b11e8
tree5f8579b85da5f0902f5d14c8711de77256156aba
parentbf0beae6a05f3266606a21e22a4d803abbb8d731
gh-112538: Add internal-only _PyThreadStateImpl "wrapper" for PyThreadState (gh-112560)

Every PyThreadState instance is now actually a _PyThreadStateImpl.
It is safe to cast from `PyThreadState*` to `_PyThreadStateImpl*` and back.
The _PyThreadStateImpl will contain fields that we do not want to expose
in the public C API.
Include/internal/pycore_interp.h
Include/internal/pycore_runtime_init.h
Include/internal/pycore_tstate.h [new file with mode: 0644]
Makefile.pre.in
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/pystate.c