]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-121592: Make select.poll() and related objects thread-safe (GH-121594)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Jul 2024 14:44:54 +0000 (16:44 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jul 2024 14:44:54 +0000 (14:44 +0000)
commit3b5f8d256c534e9b2baa64ec151da0d590213667
tree2f5f211df90fc6851a696e90edcd6ceae7942767
parent261c8e9d476653a48c775f4b1820c0554bae232a
[3.13] gh-121592: Make select.poll() and related objects thread-safe (GH-121594) (#121623)

This makes select.poll() and kqueue() objects thread-safe in the
free-threaded build. Note that calling close() concurrently with other
functions is still not thread-safe due to races on file descriptors
(gh-121544).
(cherry picked from commit 44937d11a6a045a624918db78aa36e715ffabcd4)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Modules/clinic/selectmodule.c.h
Modules/selectmodule.c