示例#1
0
 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
示例#2
0
 def __init__(self, workers, worker_parameters):
     self.workers = {}
     self.workers_number = workers
     self.worker_parameters = worker_parameters
     self.pool_channel, self.workers_channel = channels()
示例#3
0
 def __init__(self, workers, worker_parameters):
     self.workers = {}
     self.workers_number = workers
     self.worker_parameters = worker_parameters
     self.pool_channel, self.workers_channel = channels()