Difficult-Rocket/SRtool/api/thread.py

24 lines
455 B
Python
Raw Normal View History

# -------------------------------
# Difficult Rocket
# Copyright © 2021 by shenjackyuanjie
# All rights reserved
# -------------------------------
"""
writen by shenjackyuanjie
mail: 3695888@qq.com
github: @shenjackyuanjie
gitee: @shenjackyuanjie
"""
import threading
from SRtool import crash
class Threads(threading.Thread):
def run(self):
if crash.record_thread:
crash.all_thread.append(self)
super().run()