summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/AutoGenWorker.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-07-30 18:04:14 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-08-09 23:15:53 +0800
commit3285fbda88238596b2b7e886e67e455f0626bb1f (patch)
tree12c1a097402e24d4bf3500cb4906c1c06250aca8 /BaseTools/Source/Python/AutoGen/AutoGenWorker.py
parent673d09a2ddfacbc8414ca703519f32c1e48ca5b7 (diff)
downloadedk2-3285fbda88238596b2b7e886e67e455f0626bb1f.tar.gz
edk2-3285fbda88238596b2b7e886e67e455f0626bb1f.tar.bz2
edk2-3285fbda88238596b2b7e886e67e455f0626bb1f.zip
BaseTools: Add shared data for processes
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1875 Add shared data for autogen processes. Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Bob Feng <bob.c.feng@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Acked-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGenWorker.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/AutoGenWorker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGenWorker.py b/BaseTools/Source/Python/AutoGen/AutoGenWorker.py
index 6c6ef49647..9d06b45ec0 100644
--- a/BaseTools/Source/Python/AutoGen/AutoGenWorker.py
+++ b/BaseTools/Source/Python/AutoGen/AutoGenWorker.py
@@ -64,7 +64,7 @@ class AutoGenManager(threading.Thread):
def kill(self):
self.feedback_q.put(None)
class AutoGenWorkerInProcess(mp.Process):
- def __init__(self,module_queue,data_pipe_file_path,feedback_q,file_lock,error_event):
+ def __init__(self,module_queue,data_pipe_file_path,feedback_q,file_lock, share_data,error_event):
mp.Process.__init__(self)
self.module_queue = module_queue
self.data_pipe_file_path =data_pipe_file_path
@@ -72,6 +72,7 @@ class AutoGenWorkerInProcess(mp.Process):
self.feedback_q = feedback_q
self.PlatformMetaFileSet = {}
self.file_lock = file_lock
+ self.share_data = share_data
self.error_event = error_event
def GetPlatformMetaFile(self,filepath,root):
try: