summaryrefslogtreecommitdiffstats
path: root/lib/bb/server/process.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 17:59:10 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 18:58:49 -0700
commit069d6538f83b607cb46c6fe21bf6c596e8b99242 (patch)
tree537629ee5ac2a2b8a5461618fc596e9592f7d522 /lib/bb/server/process.py
parent8e75ee29ae07e13f23525c5c6045fbf6cdbe7675 (diff)
downloadbitbake-contrib-069d6538f83b607cb46c6fe21bf6c596e8b99242.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r--lib/bb/server/process.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 07688a2cd..577c2503a 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -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: