1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

bitbake: cooker/cookerdata/event: Improve class handlers management

Similarly to the execution context changes, establish better lifetime
management API of the class event handlers.

(Bitbake rev: 54e35a6cceead9521f8b1dacd48e55064e85c8bd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2013-05-23 10:50:30 +01:00
parent ea34691791
commit 507d5cc2cc
3 changed files with 13 additions and 3 deletions
+10 -1
View File
@@ -50,8 +50,17 @@ class Event(object):
Registered = 10
AlreadyRegistered = 14
def get_class_handlers():
return _handlers
def set_class_handlers(h):
_handlers = h
def clean_class_handlers():
return bb.compat.OrderedDict()
# Internal
_handlers = bb.compat.OrderedDict()
_handlers = clean_class_handlers()
_ui_handlers = {}
_ui_handler_seq = 0