mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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:
@@ -329,7 +329,7 @@ class ProcessServer():
|
|||||||
bb.error("Idle thread terminated, main thread exiting too")
|
bb.error("Idle thread terminated, main thread exiting too")
|
||||||
self.quit = True
|
self.quit = True
|
||||||
|
|
||||||
nextsleep = 0.1
|
nextsleep = 1.0
|
||||||
if self.xmlrpc:
|
if self.xmlrpc:
|
||||||
nextsleep = self.xmlrpc.get_timeout(nextsleep)
|
nextsleep = self.xmlrpc.get_timeout(nextsleep)
|
||||||
try:
|
try:
|
||||||
@@ -439,7 +439,7 @@ class ProcessServer():
|
|||||||
self.idle_cond.notify_all()
|
self.idle_cond.notify_all()
|
||||||
|
|
||||||
while not self.quit:
|
while not self.quit:
|
||||||
nextsleep = 0.1
|
nextsleep = 1.0
|
||||||
fds = []
|
fds = []
|
||||||
|
|
||||||
with bb.utils.lock_timeout(self._idlefuncsLock):
|
with bb.utils.lock_timeout(self._idlefuncsLock):
|
||||||
|
|||||||
Reference in New Issue
Block a user