summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-09-09 17:41:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-13 17:45:22 +0100
commita392877e57e07407be0e4fdf056d6e09c26f1ced (patch)
treed93275ac2d0b29e2f7d4886c20fa0aef85722fc8 /bitbake
parentdd36930f3f37b2e0e1258de28ac1b1fa99cf196f (diff)
downloadast2050-yocto-poky-a392877e57e07407be0e4fdf056d6e09c26f1ced.zip
ast2050-yocto-poky-a392877e57e07407be0e4fdf056d6e09c26f1ced.tar.gz
bitbake: bitbake: xmlrpc: delete unused code BitBakeUIEventServer
BitBakeUIEventServer is an unused class that pushes UI events over a separate thread. The current version of XMLRPC server works just fine with the classic UI event handlers, so this class is not needed. (Bitbake rev: 8e8e17631d790271b1be747c4b45059ec38ab606) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py45
1 files changed, 0 insertions, 45 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index a28672c..8326623 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -169,51 +169,6 @@ class BitBakeXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
self.end_headers()
self.wfile.write(response)
-class BitBakeUIEventServer(threading.Thread):
- class EventAdapter():
- """
- Adapter to wrap our event queue since the caller (bb.event) expects to
- call a send() method, but our actual queue only has put()
- """
- def __init__(self, notify):
- self.queue = []
- self.notify = notify
- self.qlock = threading.Lock()
-
- def send(self, event):
- self.qlock.acquire()
- self.queue.append(event)
- self.qlock.release()
- self.notify.set()
-
- def get(self):
- self.qlock.acquire()
- if len(self.queue) == 0:
- self.qlock.release()
- return None
- e = self.queue.pop(0)
- if len(self.queue) == 0:
- self.notify.clear()
- self.qlock.release()
- return e
-
- def __init__(self, connection):
- self.connection = connection
- self.notify = threading.Event()
- self.event = BitBakeUIEventServer.EventAdapter(self.notify)
- self.quit = False
- threading.Thread.__init__(self)
-
- def terminateServer(self):
- self.quit = True
-
- def run(self):
- while not self.quit:
- self.notify.wait(0.1)
- evt = self.event.get()
- if evt:
- self.connection.event.sendpickle(pickle.dumps(evt))
-
class XMLRPCProxyServer(BaseImplServer):
""" not a real working server, but a stub for a proxy server connection
OpenPOWER on IntegriCloud