예제 #1
0
파일: epolls.py 프로젝트: wdmchaft/hue
 def __init__(self, clock=time.time):
     BaseHub.__init__(self, clock)
     self.poll = epoll()
     try:
         # modify is required by select.epoll
         self.modify = self.poll.modify
     except AttributeError:
         self.modify = self.poll.register
예제 #2
0
 def __init__(self):
     self.epoll = select.epoll()
     super(EPollEventHub, self).__init__()
예제 #3
0
 def __init__(self):
     self.epoll = select.epoll()
     self.signal_handlers = defaultdict(deque)
     super(EPollEventHub, self).__init__()
예제 #4
0
파일: hub.py 프로젝트: dowski/aspen
 def __init__(self):
     self.epoll = select.epoll()
     super(EPollEventHub, self).__init__()
예제 #5
0
파일: hub.py 프로젝트: 1angxi/diesel
 def __init__(self):
     self.epoll = select.epoll()
     self.signal_handlers = defaultdict(deque)
     super(EPollEventHub, self).__init__()