def __init__(self, *pipes): ObjectPipe.__init__(self) 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.thread = None
def __init__(self, *pipes): # type: (*Pipe) -> None ObjectPipe.__init__(self, "PipeEngine") self.active_pipes = set() # type: Set[Pipe] self.active_sources = set() # type: Set[Union[Source, PipeEngine]] self.active_drains = set() # type: Set[Pipe] self.active_sinks = set() # type: Set[Pipe] self._add_pipes(*pipes) self.thread_lock = Lock() self.command_lock = Lock() self.thread = None # type: Optional[Thread]
def __init__(self, name=None): # type: (Optional[str]) -> None Pipe.__init__(self, name=name) ObjectPipe.__init__(self, name) self.is_exhausted = False
def __init__(self, name=None): Pipe.__init__(self, name=name) ObjectPipe.__init__(self) self.is_exhausted = False