summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r--bitbake/lib/bb/event.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 7826541a64..8b05f93e2f 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -184,7 +184,7 @@ def fire_ui_handlers(event, d):
184 ui_queue.append(event) 184 ui_queue.append(event)
185 return 185 return
186 186
187 with _thread_lock: 187 with bb.utils.lock_timeout(_thread_lock):
188 errors = [] 188 errors = []
189 for h in _ui_handlers: 189 for h in _ui_handlers:
190 #print "Sending event %s" % event 190 #print "Sending event %s" % event
@@ -315,7 +315,7 @@ def set_eventfilter(func):
315 _eventfilter = func 315 _eventfilter = func
316 316
317def register_UIHhandler(handler, mainui=False): 317def register_UIHhandler(handler, mainui=False):
318 with _thread_lock: 318 with bb.utils.lock_timeout(_thread_lock):
319 bb.event._ui_handler_seq = bb.event._ui_handler_seq + 1 319 bb.event._ui_handler_seq = bb.event._ui_handler_seq + 1
320 _ui_handlers[_ui_handler_seq] = handler 320 _ui_handlers[_ui_handler_seq] = handler
321 level, debug_domains = bb.msg.constructLogOptions() 321 level, debug_domains = bb.msg.constructLogOptions()
@@ -329,7 +329,7 @@ def unregister_UIHhandler(handlerNum, mainui=False):
329 if mainui: 329 if mainui:
330 global _uiready 330 global _uiready
331 _uiready = False 331 _uiready = False
332 with _thread_lock: 332 with bb.utils.lock_timeout(_thread_lock):
333 if handlerNum in _ui_handlers: 333 if handlerNum in _ui_handlers:
334 del _ui_handlers[handlerNum] 334 del _ui_handlers[handlerNum]
335 return 335 return