Пример #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 = []
Пример #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()
Пример #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()
Пример #4
0
 def __init__(self):
   IOMaster.__init__(self)
   Task.__init__(self)
Пример #5
0
 def __init__(self):
     IOMaster.__init__(self)
     Task.__init__(self)