From 73e16c15ccaf45420da25dfec3b05a8488cb0b46 Mon Sep 17 00:00:00 2001 From: YAMADA Hideki Date: Wed, 14 May 2014 19:10:59 +0900 Subject: hub: import semaphore Signed-off-by: YAMADA Hideki Signed-off-by: FUJITA Tomonori --- ryu/lib/hub.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ryu/lib/hub.py b/ryu/lib/hub.py index 95199e75..c68f19be 100644 --- a/ryu/lib/hub.py +++ b/ryu/lib/hub.py @@ -29,6 +29,7 @@ if HUB_TYPE == 'eventlet': import eventlet import eventlet.event import eventlet.queue + import eventlet.semaphore import eventlet.timeout import eventlet.wsgi import greenlet @@ -90,6 +91,8 @@ if HUB_TYPE == 'eventlet': Queue = eventlet.queue.Queue QueueEmpty = eventlet.queue.Empty + Semaphore = eventlet.semaphore.Semaphore + BoundedSemaphore = eventlet.semaphore.BoundedSemaphore class StreamServer(object): def __init__(self, listen_info, handle=None, backlog=None, -- cgit v1.2.3