示例#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)