]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-114271: Make `PyInterpreterState.threads.count` thread-safe in free-threaded build...
authormpage <mpage@meta.com>
Mon, 12 Feb 2024 17:44:00 +0000 (09:44 -0800)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2024 17:44:00 +0000 (10:44 -0700)
commitde7d67b19b9f31d7712de7211ffac5bf6018157f
tree4312e48fc02b18b828a498dcac0fdb0bc0314e2b
parent879f4546bfbc9c47ef228e7c3d2f126f3d8d64bf
gh-114271: Make `PyInterpreterState.threads.count` thread-safe in free-threaded builds (gh-115093)

Use atomics to mutate PyInterpreterState.threads.count.
Include/internal/pycore_interp.h
Modules/_threadmodule.c