summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2013-05-02 12:28:09 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-05-02 14:17:43 +0900
commit26134311d36d87b6129dde72a89e682449728c2a (patch)
tree53b6f8cfdb20ce23d1cca89eb3e2cd75672e2fff
parentca1372ad1a07fbfd56bdbec2a5428407dbcff24b (diff)
lib/hub: Event.wait should return its internal flag
'pydoc gevent.event.Event' says > Help on method wait in gevent.event.Event: > > gevent.event.Event.wait = wait(self, timeout=None) unbound gevent.event.Event method > Block until the internal flag is true. > If the internal flag is true on entry, return immediately. Otherwise, > block until another thread calls :meth:`set` to set the flag to true, > or until the optional timeout occurs. > > When the *timeout* argument is present and not ``None``, it should be a > floating point number specifying a timeout for the operation in seconds > (or fractions thereof). > > Return the value of the internal flag (``True`` or ``False``). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/hub.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ryu/lib/hub.py b/ryu/lib/hub.py
index ea935b7b..44e5feaa 100644
--- a/ryu/lib/hub.py
+++ b/ryu/lib/hub.py
@@ -120,3 +120,5 @@ if HUB_TYPE == 'eventlet':
self._wait()
except Timeout:
pass
+
+ return self._cond