Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
Bug description:
A Task which issues acondition.notify(1) to wake up aTask from a set of waiting tasks to perform some task, e.g. consume a piece of data, may hit arace condition with a simultaneouscancel() of a task among the waiting tasks, resulting in none of the tasks
successfully returning fromcond.wait(). This is problematic because because thenotify() is essentially lost, and starvation/deadlocks may occur.
PR#112201 contains a fix, as well as documentation updates
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Done