[bitbake-devel] bitbake Parser hangs on single core cpus
Christopher Larson
kergoth at gmail.com
Fri Feb 17 20:48:14 UTC 2012
This looks sane to me, but the patch refuses to apply for me. What method did you use to send this? I highly recommend using git send-email, or perhaps someone else will have better luck than I.
--
Christopher Larson
On Friday, February 17, 2012 at 1:35 PM, Caleb Crome wrote:
> From 30feca0ab3f5941c88ec28d503940e0c6c212c6a Mon Sep 17 00:00:00 2001
> From: Caleb Crome <caleb at signalessence.com (mailto:caleb at signalessence.com)>
> Date: Fri, 17 Feb 2012 12:21:59 -0800
> Subject: [prefix=PATCH] There seems to be a bug in the number of Parser
> threads created. The number of threads is
> self.num_processes - 1 due to the range(1,
> self.num_processes).
>
> This causes the Parser to hang at 0% on single core machines.
>
> This fixes the Parsers to work on singlecore machines.
> ---
> lib/bb/cooker.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
> index 8188aae..1a9cab7 100644
> --- a/lib/bb/cooker.py
> +++ b/lib/bb/cooker.py
> @@ -1534,7 +1534,7 @@ class CookerParser(object):
> self.result_queue = multiprocessing.Queue()
> self.feeder = Feeder(self.willparse, self.jobs (http://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 (http://self.jobs), self.result_queue, self.parser_quit, init)
> parser.start()
> self.processes.append(parser)
> --
> 1.7.5.4
>
>
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org (mailto:bitbake-devel at lists.openembedded.org)
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20120217/8e2e2a45/attachment-0001.html>
More information about the bitbake-devel
mailing list