mirror of
https://github.com/python/cpython.git
synced 2024-11-27 23:47:29 +01:00
760872efec
There was a deadlock when `ProcessPoolExecutor` shuts down at the same time that a queueing thread handles an error processing a task. Don't use `_shutdown_lock` to protect the `_ThreadWakeup` pipes -- use an internal lock instead. This fixes the ordering deadlock where the `ExecutorManagerThread` holds the `_shutdown_lock` and joins the queueing thread, while the queueing thread is attempting to acquire the `_shutdown_lock` while closing the `_ThreadWakeup`.
3 lines
144 B
ReStructuredText
3 lines
144 B
ReStructuredText
Fix deadlock when :class:`concurrent.futures.ProcessPoolExecutor` shuts down
|
|
concurrently with an error when feeding a job to a worker process.
|