예제 #1
0
 def __init__(self, *args, **kwargs):
   hub.BaseHub.__init__(self, *args, **kwargs)
   # Map file descriptors to coio.wakeup_info_event objects.
   self.wakeup_info = coio.wakeup_info()
   self.listeners_by_mode = [None, self.listeners[hub.READ],
                             self.listeners[hub.WRITE]]
   # The dict maps file descriptors to coio.wakeup_info_event objects.
   self.events_by_mode = [None, {}, {}]
예제 #2
0
파일: patch.py 프로젝트: olopez32/syncless
 def __init__(self, *args, **kwargs):
     hub.BaseHub.__init__(self, *args, **kwargs)
     # Map file descriptors to coio.wakeup_info_event objects.
     self.wakeup_info = coio.wakeup_info()
     self.listeners_by_mode = [
         None, self.listeners[hub.READ], self.listeners[hub.WRITE]
     ]
     # The dict maps file descriptors to coio.wakeup_info_event objects.
     self.events_by_mode = [None, {}, {}]
예제 #3
0
파일: patch.py 프로젝트: olopez32/syncless
 def __init__(self):
     self.wakeup_info = coio.wakeup_info()
     self.fd_to_event = {}
예제 #4
0
 def __init__(self):
   self.wakeup_info = coio.wakeup_info()
   self.fd_to_event = {}