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 = _thread.allocate_lock()
self.command_lock = _thread.allocate_lock()
self.__fdr,self.__fdw = os.pipe()
self.threadid = None
评论列表
文章目录