def __init__(self, workers, worker_parameters, mp_context): self.workers = {} self.workers_number = workers self.worker_parameters = worker_parameters self.pool_channel, self.workers_channel = channels(mp_context) self.mp_context = mp_context
def __init__(self, workers, worker_parameters): self.workers = {} self.workers_number = workers self.worker_parameters = worker_parameters self.pool_channel, self.workers_channel = channels()
def __init__(self, workers, worker_parameters): self.workers = {} self.workers_number = workers self.worker_parameters = worker_parameters self.pool_channel, self.workers_channel = channels()