polling.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:OpenHWControl 作者: kusti8 项目源码 文件源码
def stop(self):
        """Stop the running thread gracefully."""

        print("Stopping thread...")
        self.keep_running = False

        # Wait for the thread to stop
        self.wait()
        print("Thread stopped")

        # Uninitialize at thread stop (used for WMI in thread)
        if os.name == 'nt':
            import pythoncom
            pythoncom.CoUninitialize()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号