]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39812: Remove daemon threads in concurrent.futures (GH-19149)
authorKyle Stanley <aeros167@gmail.com>
Fri, 27 Mar 2020 19:31:22 +0000 (15:31 -0400)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2020 19:31:22 +0000 (20:31 +0100)
commitb61b818d916942aad1f8f3e33181801c4a1ed14b
treee755041eb620f5b2937639b32c0b98d1afa54c89
parent5f9c131c099d6675d1a9d0228497865488afd548
bpo-39812: Remove daemon threads in concurrent.futures (GH-19149)

Remove daemon threads from :mod:`concurrent.futures` by adding
an internal `threading._register_atexit()`, which calls registered functions
prior to joining all non-daemon threads. This allows for compatibility
with subinterpreters, which don't support daemon threads.
Doc/whatsnew/3.9.rst
Lib/concurrent/futures/process.py
Lib/concurrent/futures/thread.py
Lib/test/test_threading.py
Lib/threading.py
Misc/NEWS.d/next/Library/2020-03-25-00-35-48.bpo-39812.rIKnms.rst [new file with mode: 0644]