Exemple #1
0
 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
Exemple #2
0
 def __init__(self):
     self.epoll = select.epoll()
     super(EPollEventHub, self).__init__()
Exemple #3
0
 def __init__(self):
     self.epoll = select.epoll()
     self.signal_handlers = defaultdict(deque)
     super(EPollEventHub, self).__init__()