]> 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 15:25:31 +0000 (08:25 -0700)
committerGitHub <noreply@github.com>
Mon, 16 May 2022 15:25:31 +0000 (17:25 +0200)
commit14d05942ea21d4a95c9eac1f0bae53540d8f1602
tree94e513ef53041483b6d7702b5d3a96c105009a88
parentc4fc53f44e382f133bf874c079c2f6a8a61d1e2f
gh-92530: Fix an issue that occurred after interrupting threading.Condition.notify (GH-92534) (GH-92831)

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]