diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 17:59:10 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-10 11:10:02 -0700 |
commit | 324969e9e2ed2b11e63eb31d6d8b46269a1d5dac (patch) | |
tree | 6e89318dc4557dcabb0d5d8577898b5db1428d01 /bitbake/lib/bb/server | |
parent | 5dcc20b95400d35ea1b3b1da8ffd9e9cd9a31afb (diff) | |
download | poky-324969e9e2ed2b11e63eb31d6d8b46269a1d5dac.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 07688a2cdb..577c2503ac 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -128,6 +128,7 @@ class ProcessServer(Process, BaseImplServer): | |||
128 | retval = function(self, data, False) | 128 | retval = function(self, data, False) |
129 | if retval is False: | 129 | if retval is False: |
130 | del self._idlefuns[function] | 130 | del self._idlefuns[function] |
131 | nextsleep = None | ||
131 | elif retval is True: | 132 | elif retval is True: |
132 | nextsleep = None | 133 | nextsleep = None |
133 | elif nextsleep is None: | 134 | elif nextsleep is None: |