Exemple #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 = []
Exemple #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()
Exemple #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()
 def __init__(self):
   IOMaster.__init__(self)
   Task.__init__(self)
Exemple #5
0
 def __init__(self):
     IOMaster.__init__(self)
     Task.__init__(self)