[bitbake-devel] [PATCH 3/4] cooker: Allow faster exitting from parser threads

Christopher Larson kergoth at gmail.com
Mon Jan 7 16:02:15 UTC 2019


Empty is raised when it times out, not just when it’s actually empty,
though.

On Mon, Jan 7, 2019 at 8:55 AM Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> We don't push "None" values onto the parser queue so currently idle parsing
> threads loop every 0.25s and idle. They may as well exit out of their work
> is done.
>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
> ---
>  lib/bb/cooker.py | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
> index d1d2868d6f..9b2a0920f9 100644
> --- a/lib/bb/cooker.py
> +++ b/lib/bb/cooker.py
> @@ -1943,9 +1943,6 @@ class Parser(multiprocessing.Process):
>                  try:
>                      job = self.jobs.get(timeout=0.25)
>                  except queue.Empty:
> -                    continue
> -
> -                if job is None:
>                      break
>                  result = self.parse(*job)
>
> --
> 2.19.1
>
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel
>


-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20190107/65b9e99b/attachment.html>


More information about the bitbake-devel mailing list