summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Crome <caleb@signalessence.com>2012-02-17 12:21:59 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-22 20:25:30 +0000
commit0aedc60b02247749ab78230e3d7dfc3542882c8a (patch)
tree45e916aed36ec4cc29c2eac3e10f354afe069639
parentf7c0488bd5c52094b744ec89bfe27e7dfd541a6f (diff)
downloadpoky-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>
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 8188aaef34..1a9cab7dc8 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1534,7 +1534,7 @@ class CookerParser(object):
1534 self.result_queue = multiprocessing.Queue() 1534 self.result_queue = multiprocessing.Queue()
1535 self.feeder = Feeder(self.willparse, self.jobs, self.feeder_quit) 1535 self.feeder = Feeder(self.willparse, self.jobs, self.feeder_quit)
1536 self.feeder.start() 1536 self.feeder.start()
1537 for i in range(1, self.num_processes): 1537 for i in range(0, self.num_processes):
1538 parser = Parser(self.jobs, self.result_queue, self.parser_quit, init) 1538 parser = Parser(self.jobs, self.result_queue, self.parser_quit, init)
1539 parser.start() 1539 parser.start()
1540 self.processes.append(parser) 1540 self.processes.append(parser)