[oe-commits] [bitbake] 04/05: cooker: Allow faster exitting from parser threads

git at git.openembedded.org git at git.openembedded.org
Mon Jan 7 15:39:55 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 123c79aa1bb7e9477a19348ae6217dd8b49f1382
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Dec 28 16:40:33 2018 +0000

    cooker: Allow faster exitting from parser threads
    
    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 d1d2868..9b2a092 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)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list