Home | History | Annotate | Download | only in multiprocessing

Lines Matching full:semaphore

36     'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event'
65 RECURSIVE_MUTEX, SEMAPHORE = range(2)
105 # Semaphore
108 class Semaphore(SemLock):
111 SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX)
121 return '<Semaphore(value=%s)>' % value
124 # Bounded semaphore
127 class BoundedSemaphore(Semaphore):
130 SemLock.__init__(self, SEMAPHORE, value, value)
147 SemLock.__init__(self, SEMAPHORE, 1, 1)
199 self._sleeping_count = Semaphore(0)
200 self._woken_count = Semaphore(0)
201 self._wait_semaphore = Semaphore(0)
303 self._flag = Semaphore(0)