mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
![]() The test had an instability issue due to the ordering of the dummy queue operation and the real wakeup pipe operations. Both primitives are thread safe but not done atomically as a single update and may interleave arbitrarily. With the old order of operations this can lead to an incorrect state where the dummy queue is full but the wakeup pipe is empty. By swapping the order in clear() I think this can no longer happen in any possible operation interleaving (famous last words). |
||
---|---|---|
.. | ||
__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 |