1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

bitbake: cooker: Clean up inotify idle handler

We no longer need to abstract the inotify callback handler, remove the
abstraction and simplify/clean up the code.

(Bitbake rev: af4ccab8acc49e91bf7647f209d69f4858618466)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2023-01-04 17:56:58 +00:00
parent 9043034da5
commit 7f556c6861
2 changed files with 3 additions and 8 deletions
+3 -2
View File
@@ -157,8 +157,7 @@ class ProcessServer():
def wait_for_idle(self, timeout=30):
# Wait for the idle loop to have cleared
with self.idle_cond:
# FIXME - the 1 is the inotify processing in cooker which always runs
self.idle_cond.wait_for(lambda: len(self._idlefuns) <= 1, timeout)
self.idle_cond.wait_for(lambda: len(self._idlefuns) == 0, timeout)
def main(self):
self.cooker.pre_serve()
@@ -387,6 +386,8 @@ class ProcessServer():
nextsleep = 0.1
fds = []
self.cooker.process_inotify_updates()
with bb.utils.lock_timeout(self._idlefuncsLock):
items = list(self._idlefuns.items())