def stop(self): self._baseLog.info("--> stop()") FrontendTunerDevice.stop(self) if not ThreadedComponent.stopThread(self, self.TIMEOUT): self._baseLog.info("<-- stop()") raise CF.Resource.StopError(CF.CF_NOTSET, "Processing thread did not die") self._baseLog.info("<-- stop()")
def stop(self): self.threadControlLock.acquire() try: process_thread = self.process_thread self.process_thread = None if process_thread != None: process_thread.stop() process_thread.join(self.TIMEOUT) if process_thread.isAlive(): raise CF.Resource.StopError(CF.CF_NOTSET, "Processing thread did not die") FrontendTunerDevice.stop(self) finally: self.threadControlLock.release()
def stop(self): FrontendTunerDevice.stop(self) if not ThreadedComponent.stopThread(self, self.TIMEOUT): raise CF.Resource.StopError(CF.CF_NOTSET, "Processing thread did not die")