mirror of
git://git.yoctoproject.org/poky
synced 2026-08-12 18:30:46 +00:00
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:
parent
5dcc20b954
commit
324969e9e2
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user