self.lock = threading.Condition()

def count_down(self):
    self.lock.acquire()
self.count -= 1
if self.count <= 0:
    self.lock.notifyAll()
self.lock.release()

def await(self):
    self.lock.acquire()
while self.count > 0:
    self.lock.wait()
self.lock.release()
Есть ли в Python механизм управления, аналогичный Java CountDownLatch?