]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: server/process: Optimise latency when finishing idle functions
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Mar 2014 00:59:10 +0000 (17:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Mar 2014 18:10:02 +0000 (11:10 -0700)
When idle functions finish, its likely we have some other work
to do, so don't sleep in the select call but instead, skip it.
This removes small amounts of latency in common commands.

(Bitbake rev: 069d6538f83b607cb46c6fe21bf6c596e8b99242)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/server/process.py

index 07688a2cdb6037a11de42fc411c1aedb2e7f1ffd..577c2503ac5cf4a1103dae46b0ef64d232b12dd3 100644 (file)
@@ -128,6 +128,7 @@ class ProcessServer(Process, BaseImplServer):
                 retval = function(self, data, False)
                 if retval is False:
                     del self._idlefuns[function]
+                    nextsleep = None
                 elif retval is True:
                     nextsleep = None
                 elif nextsleep is None: