]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-92530: Fix an issue that occurred after interrupting threading.Condition...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 May 2022 16:45:40 +0000 (09:45 -0700)
committerGitHub <noreply@github.com>
Tue, 17 May 2022 16:45:40 +0000 (09:45 -0700)
commit38d95b5500fa2d84d718c4190ba2f1b2f6806e6c
tree90ce41c1a673b68ee76fffd4d3ed4e601b95b817
parent76b81be41346774a2e12607aa4d55f34b170b8e9
[3.11] gh-92530: Fix an issue that occurred after interrupting threading.Condition.notify (GH-92534) (GH-92829)

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>
Automerge-Triggered-By: GH:serhiy-storchaka
Lib/threading.py
Misc/NEWS.d/next/Library/2022-05-09-09-28-02.gh-issue-92530.M4Q1RS.rst [new file with mode: 0644]