diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-09-28 08:24:55 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:37 +0000 |
commit | 26eda933379801ef1c8b4b09e67d14f498cd3813 (patch) | |
tree | 16afc923128c95263fde510eaa5d51a73469b5d0 /bitbake/lib/bb/server | |
parent | 30cef6bade179e88a439ec83ebb78bcc6d041c86 (diff) | |
download | openembedded-core-26eda933379801ef1c8b4b09e67d14f498cd3813.tar.gz openembedded-core-26eda933379801ef1c8b4b09e67d14f498cd3813.tar.bz2 openembedded-core-26eda933379801ef1c8b4b09e67d14f498cd3813.zip |
Queue up events before the UI is spawned
- Queue up any events fired to the UI before the UI exists
- At exit, check if UIs exist, and if not, flush the queue of LogRecords to
the console directly.
- When establishing a connection from the UI to the server, flush the queue of
events to the queue in the server connection, so the UI will receive them
when it begins its event loop.
(Bitbake rev: 73488aeb317ed306f2ecf99cc9d3708526a5933c)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r-- | bitbake/lib/bb/server/none.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/server/xmlrpc.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/server/none.py b/bitbake/lib/bb/server/none.py index dafb2feba9..2708807dfc 100644 --- a/bitbake/lib/bb/server/none.py +++ b/bitbake/lib/bb/server/none.py @@ -174,6 +174,8 @@ class BitBakeServerConnection(): self.server = serverinfo.server self.connection = serverinfo.commands self.events = bb.server.none.BBUIEventQueue(self.server) + for event in bb.event.ui_queue: + self.events.queue_event(event) def terminate(self): try: diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py index c2bfe12176..0d03e308d0 100644 --- a/bitbake/lib/bb/server/xmlrpc.py +++ b/bitbake/lib/bb/server/xmlrpc.py @@ -243,6 +243,8 @@ class BitBakeServerConnection(): t = BBTransport() self.connection = xmlrpclib.Server("http://%s:%s" % (serverinfo.host, serverinfo.port), transport=t, allow_none=True) self.events = uievent.BBUIEventQueue(self.connection) + for event in bb.event.ui_queue: + self.events.queue_event(event) def terminate(self): # Don't wait for server indefinitely |