diff options
author | Caleb Crome <caleb@signalessence.com> | 2012-02-17 12:21:59 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-22 20:25:30 +0000 |
commit | 0aedc60b02247749ab78230e3d7dfc3542882c8a (patch) | |
tree | 45e916aed36ec4cc29c2eac3e10f354afe069639 /bitbake/lib | |
parent | f7c0488bd5c52094b744ec89bfe27e7dfd541a6f (diff) | |
download | ast2050-yocto-poky-0aedc60b02247749ab78230e3d7dfc3542882c8a.zip ast2050-yocto-poky-0aedc60b02247749ab78230e3d7dfc3542882c8a.tar.gz |
Fix parser hang at 0% with single-core machines
The number of threads is self.num_processes - 1 due to the range(1,
self.num_processes). Fixed by changing to range(0, self.num_processes).
(Bitbake rev: adc041fd9e3def29cdf9c1ae4849c5383bac46e5)
Signed-off-by: Caleb Crome <caleb@signalessence.com>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 8188aae..1a9cab7 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1534,7 +1534,7 @@ class CookerParser(object): self.result_queue = multiprocessing.Queue() self.feeder = Feeder(self.willparse, self.jobs, self.feeder_quit) self.feeder.start() - for i in range(1, self.num_processes): + for i in range(0, self.num_processes): parser = Parser(self.jobs, self.result_queue, self.parser_quit, init) parser.start() self.processes.append(parser) |