def __init__(self): """Initialize the service launcher. :returns: None """ self._services = threadgroup.ThreadGroup() self.backdoor_port = eventlet_backdoor.initialize_if_enabled()
def __init__(self): self.services = [] self.tg = threadgroup.ThreadGroup() self.done = event.Event()
def __init__(self, threads=1000): self.tg = threadgroup.ThreadGroup(threads) # signal that the service is done shutting itself down: self._done = event.Event()
def __init__(self, threads=1000): self.tg = threadgroup.ThreadGroup(threads)