From: Richard Purdie Date: Wed, 8 Jun 2011 11:04:23 +0000 (+0100) Subject: bitbake/server/process: Implement getEvent() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83c3f872cb2e479eeef8efd5a9bd5f07a75c5df2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake/server/process: Implement getEvent() Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 12f368f80f2..44b8e4d496c 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py @@ -229,6 +229,13 @@ class ProcessEventQueue(multiprocessing.queues.Queue): except Empty: return None + def getEvent(self): + try: + return self.get(False) + except Empty: + return None + + class BitBakeServer(object): def initServer(self): # establish communication channels. We use bidirectional pipes for