]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121592: Make select.poll() and related objects thread-safe (#121594)
authorSam Gross <colesbury@gmail.com>
Thu, 11 Jul 2024 14:21:09 +0000 (10:21 -0400)
committerGitHub <noreply@github.com>
Thu, 11 Jul 2024 14:21:09 +0000 (10:21 -0400)
commit44937d11a6a045a624918db78aa36e715ffabcd4
treed071b71be090d80846445617923e276b78f5da46
parente6264b44dc7221c713b14dfa0f5929b33d362829
gh-121592: Make select.poll() and related objects thread-safe (#121594)

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).
Modules/clinic/selectmodule.c.h
Modules/selectmodule.c