bitbake: server/process: Optimise latency when finishing idle functions

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>
This commit is contained in:
Richard Purdie
2014-03-09 17:59:10 -07:00
parent 5dcc20b954
commit 324969e9e2

View 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: