summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cooker.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 4b52108eaf..69098ccf91 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -998,6 +998,8 @@ class CookerParser(object):
998 self.result_queue = None 998 self.result_queue = None
999 self.fromcache = None 999 self.fromcache = None
1000 self.progress_chunk = self.total / 100 1000 self.progress_chunk = self.total / 100
1001 self.num_processes = int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or
1002 multiprocessing.cpu_count())
1001 1003
1002 def launch_processes(self): 1004 def launch_processes(self):
1003 self.task_queue = multiprocessing.Queue() 1005 self.task_queue = multiprocessing.Queue()
@@ -1018,9 +1020,7 @@ class CookerParser(object):
1018 output.put(infos) 1020 output.put(infos)
1019 1021
1020 self.processes = [] 1022 self.processes = []
1021 num_processes = int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or 1023 for i in xrange(self.num_processes):
1022 multiprocessing.cpu_count())
1023 for i in xrange(num_processes):
1024 process = multiprocessing.Process(target=worker, 1024 process = multiprocessing.Process(target=worker,
1025 args=(self.task_queue, 1025 args=(self.task_queue,
1026 self.result_queue, 1026 self.result_queue,