]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120973: Fix thread-safety issues with `threading.local` (#121655)
authormpage <mpage@meta.com>
Fri, 19 Jul 2024 17:22:02 +0000 (10:22 -0700)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2024 17:22:02 +0000 (13:22 -0400)
commite059aa6b01030310125477c3ed1da0491020fe10
treec62b22c966cfa6cdd0d53779d3e9ad965713bf2e
parent2009e25e26040dca32696e70f91f13665350e7fd
gh-120973: Fix thread-safety issues with `threading.local` (#121655)

This is a small refactoring to the current design that allows us to
avoid manually iterating over threads.

This should also fix gh-118490.
Include/cpython/pystate.h
Modules/_threadmodule.c
Python/pystate.c