Home | History | Annotate | Download | only in python2.7

Lines Matching refs:Semaphore

31            'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread',
411 def Semaphore(*args, **kwargs):
412 """A factory function that returns a new semaphore.
430 # After Tim Peters' semaphore class, but not quite the same (no maximum)
434 raise ValueError("semaphore initial value must be >= 0")
440 """Acquire a semaphore, decrementing the internal counter by one.
479 """Release a semaphore, incrementing the internal counter by one.
497 """A factory function that returns a new bounded semaphore.
499 A bounded semaphore checks to make sure its current value doesn't exceed its
503 If the semaphore is released too many times it's a sign of a bug. If not
515 """A bounded semaphore checks to make sure its current value doesn't exceed
525 """Release a semaphore, incrementing the internal counter by one.
535 raise ValueError("Semaphore released too many times")