diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
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): self.result_queue = None self.fromcache = None self.progress_chunk = self.total / 100 + self.num_processes = int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or + multiprocessing.cpu_count()) def launch_processes(self): self.task_queue = multiprocessing.Queue() @@ -1018,9 +1020,7 @@ class CookerParser(object): output.put(infos) self.processes = [] - num_processes = int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or - multiprocessing.cpu_count()) - for i in xrange(num_processes): + for i in xrange(self.num_processes): process = multiprocessing.Process(target=worker, args=(self.task_queue, self.result_queue, |