bitbake: server/process: Decrease idle/main loop frequency

The idle and main loops have socket select calls to know when to execute.
This means we can increase the normal timeout frequency since this is
just a fall back and have some small efficiency gains.

(Bitbake rev: 8d8e17af8619c976819170c9d5d9a686a666c317)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2024-11-05 15:04:18 +00:00
parent 9500cf65a7
commit fc027ef55f

View File

@@ -329,7 +329,7 @@ class ProcessServer():
bb.error("Idle thread terminated, main thread exiting too")
self.quit = True
nextsleep = 0.1
nextsleep = 1.0
if self.xmlrpc:
nextsleep = self.xmlrpc.get_timeout(nextsleep)
try:
@@ -439,7 +439,7 @@ class ProcessServer():
self.idle_cond.notify_all()
while not self.quit:
nextsleep = 0.1
nextsleep = 1.0
fds = []
with bb.utils.lock_timeout(self._idlefuncsLock):