summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/uievent.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-01-19 09:56:25 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-01-19 09:56:25 +0000
commit2778a69e31715ecb7a2fafc986d82d6f7df3074b (patch)
treee7c1216a05c0c4089f981ae03309f370d29db850 /lib/bb/ui/uievent.py
parent45997fbe2a4630952f9632fdb44a067d3c3aafca (diff)
downloadbitbake-2778a69e31715ecb7a2fafc986d82d6f7df3074b.tar.gz
event.py: Convert to using pickle for events and isinstance in knotty UI handler
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'lib/bb/ui/uievent.py')
-rw-r--r--lib/bb/ui/uievent.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bb/ui/uievent.py b/lib/bb/ui/uievent.py
index 476eb4c59..36302f4da 100644
--- a/lib/bb/ui/uievent.py
+++ b/lib/bb/ui/uievent.py
@@ -24,7 +24,7 @@ server and queue them for the UI to process. This process must be used to avoid
client/server deadlocks.
"""
-import socket, threading
+import socket, threading, pickle
from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
class BBUIEventQueue:
@@ -55,7 +55,6 @@ class BBUIEventQueue:
self.eventQueueNotify.clear()
self.eventQueueLock.release()
-
return item
def waitEvent(self, delay):
@@ -63,9 +62,8 @@ class BBUIEventQueue:
return self.getEvent()
def queue_event(self, event):
-
self.eventQueueLock.acquire()
- self.eventQueue.append(event)
+ self.eventQueue.append(pickle.loads(event))
self.eventQueueNotify.set()
self.eventQueueLock.release()