Example #1
0
 def __init__ (self):
   Task.__init__(self)
   self.workers = set()
   self.pinger = makePinger()
   # socket.close() must be performed by this Select task -- otherwise
   # we'll end up blocking on socket that doesn't exist.
   self.pending_worker_closes = []
Example #2
0
 def __init__ (self):
   Task.__init__(self)
   self._workers = set()
   self.pinger = makePinger()
   # socket.open() and socket.close() are performed by this Select task
   # other threads register open() and close() requests by adding lambdas
   # to this thread-safe queue.
   self._pending_commands = Queue.Queue()
Example #3
0
 def __init__(self):
     Task.__init__(self)
     self._workers = set()
     self.pinger = makePinger()
     # socket.open() and socket.close() are performed by this Select task
     # other threads register open() and close() requests by adding lambdas
     # to this thread-safe queue.
     self._pending_commands = Queue.Queue()
Example #4
0
 def __init__(self, worker_type=RecocoIOWorker):
     super(RecocoIOLoop, self).__init__()
     self._worker_type = worker_type
     self._workers = set()
     self.pinger = makePinger()
     # socket.open() and socket.close() are performed by this Select task
     # other threads register open() and close() requests by adding lambdas
     # to this thread-safe queue.
     self._pending_commands = deque()
Example #5
0
 def __init__ (self, worker_type = RecocoIOWorker):
   super(RecocoIOLoop,self).__init__()
   self._worker_type = worker_type
   self._workers = set()
   self.pinger = makePinger()
   # socket.open() and socket.close() are performed by this Select task
   # other threads register open() and close() requests by adding lambdas
   # to this thread-safe queue.
   self._pending_commands = deque()
Example #6
0
 def __init__(self):
     self._workers = set()
     self.pinger = makePinger()
     self.closed = False
     self._close_requested = False
     self._in_select = 0
Example #7
0
 def __init__(self):
     self._workers = set()
     self.pinger = makePinger()
     self.closed = False
     self._close_requested = False
     self._in_select = 0
Example #8
0
 def __init__ (self):
   self._workers = set()
   self.pinger = makePinger()
Example #9
0
 def __init__ (self):
   self._workers = set()
   self.pinger = makePinger()