]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-92530: Fix an issue that occurred after interrupting threading.Condition.notify...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 16 May 2022 16:54:01 +0000 (09:54 -0700)
committerGitHub <noreply@github.com>
Mon, 16 May 2022 16:54:01 +0000 (18:54 +0200)
commite29ce9a5f111270163a047b50ea55af6cad89838
treefca0a4407331bf3e62c7b1190caf4f3293664028
parentcfb9248cd4adb2ef4309e7ddb406cab5ce6edffa
gh-92530: Fix an issue that occurred after interrupting threading.Condition.notify (GH-92534) (GH-92830)

If Condition.notify() was interrupted just after it released the waiter lock,
but before removing it from the queue, the following calls of notify() failed
with RuntimeError: cannot release un-acquired lock.
(cherry picked from commit 70af994fee7c0850ae859727d9468a5f29375a38)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/threading.py
Misc/NEWS.d/next/Library/2022-05-09-09-28-02.gh-issue-92530.M4Q1RS.rst [new file with mode: 0644]