|
|
|
@ -295,8 +295,8 @@ class ApiWsdl () :
|
|
|
|
|
self.add_sid_pid(sid, pid)
|
|
|
|
|
|
|
|
|
|
# Manager for sending glob_process_dict between watcher and process
|
|
|
|
|
manager = multiprocessing.Manager()
|
|
|
|
|
self.glob_process_dict[pid] = manager.dict()
|
|
|
|
|
#manager = multiprocessing.Manager()
|
|
|
|
|
self.glob_process_dict[pid] = self.manager.dict()
|
|
|
|
|
self.glob_process_dict[pid]['sid'] = sid
|
|
|
|
|
self.glob_process_dict[pid]['status'] = 0
|
|
|
|
|
self.glob_process_dict[pid]['time'] = ""
|
|
|
|
@ -305,9 +305,9 @@ class ApiWsdl () :
|
|
|
|
|
self.glob_process_dict[pid]['flag'] = 0
|
|
|
|
|
self.glob_process_dict[pid]['counter'] = 0
|
|
|
|
|
|
|
|
|
|
self.glob_frame_list[pid] = manager.list()
|
|
|
|
|
self.glob_progress_dict[pid] = manager.dict()
|
|
|
|
|
self.glob_table_dict[pid] = manager.dict()
|
|
|
|
|
self.glob_frame_list[pid] = self.manager.list()
|
|
|
|
|
self.glob_progress_dict[pid] = self.manager.dict()
|
|
|
|
|
self.glob_table_dict[pid] = self.manager.dict()
|
|
|
|
|
|
|
|
|
|
# create object Common and send parameters
|
|
|
|
|
com = target(self.glob_process_dict[pid], \
|
|
|
|
@ -318,7 +318,7 @@ class ApiWsdl () :
|
|
|
|
|
if hasattr (com.__class__.__bases__[1], '__init__'):
|
|
|
|
|
com.__class__.__bases__[1].__init__(com)
|
|
|
|
|
# start helper
|
|
|
|
|
p = multiprocessing.process.Process(target = self.target_helper,\
|
|
|
|
|
p = multiprocessing.Process(target = self.target_helper,\
|
|
|
|
|
args = (com, getattr(com,method)) +(method_name, )+ args_proc)
|
|
|
|
|
|
|
|
|
|
self.process_pid[pid] = p
|
|
|
|
|