summaryrefslogtreecommitdiffstats
path: root/Python/condvar.h
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2023-10-05 15:46:33 (GMT)
committerGitHub <noreply@github.com>2023-10-05 15:46:33 (GMT)
commit6e97a9647ae028facb392d12fc24973503693bd6 (patch)
treecce40bd0d1b8317652405f04c54541d48b3419e9 /Python/condvar.h
parent9eb2489266c4c1f115b8f72c0728db737cc8a815 (diff)
downloadcpython-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/condvar.h')
0 files changed, 0 insertions, 0 deletions