summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index a5a635858c..738849d189 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -251,14 +251,14 @@ class BBCooker:
251 self.notifier = pyinotify.Notifier(self.watcher, self.notifications) 251 self.notifier = pyinotify.Notifier(self.watcher, self.notifications)
252 252
253 def process_inotify_updates(self): 253 def process_inotify_updates(self):
254 with self.inotify_threadlock: 254 with bb.utils.lock_timeout(self.inotify_threadlock):
255 for n in [self.confignotifier, self.notifier]: 255 for n in [self.confignotifier, self.notifier]:
256 if n and n.check_events(timeout=0): 256 if n and n.check_events(timeout=0):
257 # read notified events and enqueue them 257 # read notified events and enqueue them
258 n.read_events() 258 n.read_events()
259 259
260 def process_inotify_updates_apply(self): 260 def process_inotify_updates_apply(self):
261 with self.inotify_threadlock: 261 with bb.utils.lock_timeout(self.inotify_threadlock):
262 for n in [self.confignotifier, self.notifier]: 262 for n in [self.confignotifier, self.notifier]:
263 if n and n.check_events(timeout=0): 263 if n and n.check_events(timeout=0):
264 n.read_events() 264 n.read_events()