Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Race between asyncio Condition.notify() and Task.cancel() may result in lost wakeups. #112202

Closed
Labels
@kristjanvalur

Description

@kristjanvalur

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

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp