摘要: import threading import time import logging class TimeoutWrapper(object): def __init__(self, timeout, process): self.timeout = timeout self.timer = No 阅读全文
posted @ 2021-04-14 10:44 GhostAnt 阅读(76) 评论(0) 推荐(0) 编辑
摘要: import threading import os class LockedFile(object): SETUP_LOGGER_LOCK = threading.Lock() LOGFILES = {} @classmethod def open(cls, fn): with cls.SETUP 阅读全文
posted @ 2021-04-14 10:22 GhostAnt 阅读(265) 评论(0) 推荐(0) 编辑