mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
![]() concurrent.futures: The *executor manager thread* now catches exceptions when adding an item to the *call queue*. During Python finalization, creating a new thread can now raise RuntimeError. Catch the exception and call terminate_broken() in this case. Add test_python_finalization_error() to test_concurrent_futures. concurrent.futures._ExecutorManagerThread changes: * terminate_broken() no longer calls shutdown_workers() since the call queue is no longer working anymore (read and write ends of the queue pipe are closed). * terminate_broken() now terminates child processes, not only wait until they complete. * _ExecutorManagerThread.terminate_broken() now holds shutdown_lock to prevent race conditons with ProcessPoolExecutor.submit(). multiprocessing.Queue changes: * Add _terminate_broken() method. * _start_thread() sets _thread to None on exception to prevent leaking "dangling threads" even if the thread was not started yet. |
||
---|---|---|
.. | ||
__init__.py | ||
executor.py | ||
test_as_completed.py | ||
test_deadlock.py | ||
test_future.py | ||
test_init.py | ||
test_process_pool.py | ||
test_shutdown.py | ||
test_thread_pool.py | ||
test_wait.py | ||
util.py |