Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S snf-ganeti
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • itmineduitminedu
  • snf-ganeti
  • Repository
Switch branch/tag
  • snf-ganeti
  • test
  • ganeti.locking_unittest.py
Find file BlameHistoryPermalink
  • Michael Hanselmann's avatar
    Add _PipeCondition class · 48dabc6a
    Michael Hanselmann authored Sep 28, 2009
    
    
    _PipeCondition is a condition implemented using pipe(2) and poll(2).
    It allows the implementation of timeouts without using a busy-wait loop
    with time.sleep.
    
    Unlike Python's built-in threading.Condition class and to save file
    descriptors and an internal queue, it can only be used to notify
    all waiters. Ganeti's use case for this condition class doesn't
    require the ability to notify only one waiter.
    
    Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
    Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    48dabc6a