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 = []
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): 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, 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()
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()
def __init__(self): self._workers = set() self.pinger = makePinger() self.closed = False self._close_requested = False self._in_select = 0
def __init__ (self): self._workers = set() self.pinger = makePinger()