diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 12:04:23 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 12:04:23 +0100 |
| commit | 83c3f872cb2e479eeef8efd5a9bd5f07a75c5df2 (patch) | |
| tree | 808b308cd9b1da745c37e5ba8caf5c277c2e0bab /bitbake/lib/bb/server/process.py | |
| parent | 658ba779ac98803e82fb3f17860a72f178f97d5b (diff) | |
| download | poky-83c3f872cb2e479eeef8efd5a9bd5f07a75c5df2.tar.gz | |
bitbake/server/process: Implement getEvent()
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server/process.py')
| -rw-r--r-- | bitbake/lib/bb/server/process.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 12f368f80f..44b8e4d496 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
| @@ -229,6 +229,13 @@ class ProcessEventQueue(multiprocessing.queues.Queue): | |||
| 229 | except Empty: | 229 | except Empty: |
| 230 | return None | 230 | return None |
| 231 | 231 | ||
| 232 | def getEvent(self): | ||
| 233 | try: | ||
| 234 | return self.get(False) | ||
| 235 | except Empty: | ||
| 236 | return None | ||
| 237 | |||
| 238 | |||
| 232 | class BitBakeServer(object): | 239 | class BitBakeServer(object): |
| 233 | def initServer(self): | 240 | def initServer(self): |
| 234 | # establish communication channels. We use bidirectional pipes for | 241 | # establish communication channels. We use bidirectional pipes for |
