]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-120973: Fix thread-safety issues with `threading.local` (GH-121655) (#122042)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jul 2024 17:49:34 +0000 (19:49 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2024 17:49:34 +0000 (17:49 +0000)
commitbf7f4f357b58d169508f0e26951c77fff01b639e
tree9750fd2887aeed5931b4de80ed2ddb44f80efc48
parent159ea47ed8ce454e749eadafb11c6126df45754e
[3.13] gh-120973: Fix thread-safety issues with `threading.local` (GH-121655) (#122042)

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

This should also fix gh-118490.
(cherry picked from commit e059aa6b01030310125477c3ed1da0491020fe10)

Co-authored-by: mpage <mpage@meta.com>
Include/cpython/pystate.h
Modules/_threadmodule.c
Python/pystate.c