diff options
author | Sam Gross <colesbury@gmail.com> | 2023-10-05 15:46:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-05 15:46:33 (GMT) |
commit | 6e97a9647ae028facb392d12fc24973503693bd6 (patch) | |
tree | cce40bd0d1b8317652405f04c54541d48b3419e9 /Python/getcompiler.c | |
parent | 9eb2489266c4c1f115b8f72c0728db737cc8a815 (diff) | |
download | cpython-6e97a9647ae028facb392d12fc24973503693bd6.zip cpython-6e97a9647ae028facb392d12fc24973503693bd6.tar.gz cpython-6e97a9647ae028facb392d12fc24973503693bd6.tar.bz2 |
gh-109549: Add new states to PyThreadState to support PEP 703 (gh-109915)
This adds a new field 'state' to PyThreadState that can take on one of three values: _Py_THREAD_ATTACHED, _Py_THREAD_DETACHED, or _Py_THREAD_GC. The "attached" and "detached" states correspond closely to acquiring and releasing the GIL. The "gc" state is current unused, but will be used to implement stop-the-world GC for --disable-gil builds in the near future.
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions