Пример #1
0
 def __init__(self, *pipes):
     self.active_pipes = set()
     self.active_sources = set()
     self.active_drains = set()
     self.active_sinks = set()
     self._add_pipes(*pipes)
     self.thread_lock = Lock()
     self.command_lock = Lock()
     self.__fd_queue = collections.deque()
     self.__fdr, self.__fdw = os.pipe()
     self.thread = None
     SelectableObject.__init__(self)
Пример #2
0
 def __init__(self):
     SelectableObject.__init__(self)
     self.cls = None
Пример #3
0
 def __init__(self, name=None):
     SelectableObject.__init__(self)
     Source.__init__(self, name=name)
     self.__fdr, self.__fdw = os.pipe()
     self._queue = collections.deque()
Пример #4
0
 def __init__(self, name=None):
     Pipe.__init__(self, name=name)
     SelectableObject.__init__(self)
     self.is_exhausted = False
Пример #5
0
 def __init__(self):
     SelectableObject.__init__(self)