diff options
author | Sam Gross <colesbury@gmail.com> | 2024-03-13 18:56:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 18:56:28 (GMT) |
commit | 98ab21cce6d4c7bd2b5a0a1521b50b1ce2566a44 (patch) | |
tree | 6f41df0b53447c065c838b2214ef8b7487ebb2e4 /Python/modsupport.c | |
parent | 25684e71310642ffd20b45eea9b5226a1fa809a5 (diff) | |
download | cpython-98ab21cce6d4c7bd2b5a0a1521b50b1ce2566a44.zip cpython-98ab21cce6d4c7bd2b5a0a1521b50b1ce2566a44.tar.gz cpython-98ab21cce6d4c7bd2b5a0a1521b50b1ce2566a44.tar.bz2 |
gh-116631: Fix race condition in `test_shutdown_immediate_put_join` (#116670)
The test case had a race condition: if `q.task_done()` was executed
after `shutdown(immediate=True)`, then it would raise an exception
because the immediate shutdown already emptied the queue. This happened
rarely with the GIL (due to the switching interval), but frequently in
the free-threaded build.
Diffstat (limited to 'Python/modsupport.c')
0 files changed, 0 insertions, 0 deletions