Issue #10332: multiprocessing: fix a race condition when a Pool is closed
before all tasks have completed.
3 files changed