Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.9] gh-92530: Fix an issue that occurred after interrupting threading.Condition.notify (GH-92534) #92831

Merged
merged 1 commit into from May 16, 2022

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 16, 2022

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 70af994)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

Automerge-Triggered-By: GH:serhiy-storchaka

…ng.Condition.notify (pythonGH-92534)

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 70af994)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington
Copy link
Contributor Author

Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

Status check is done, and it's a success ✅ .

@ambv ambv merged commit 14d0594 into python:3.9 May 16, 2022
@miss-islington miss-islington deleted the backport-70af994-3.9 branch May 16, 2022 15:25
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
…ng.Condition.notify (pythonGH-92534) (pythonGH-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 70af994)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants