摘要:
import threading import time import logging class TimeoutWrapper(object): def __init__(self, timeout, process): self.timeout = timeout self.timer = No 阅读全文
摘要:
import threading import os class LockedFile(object): SETUP_LOGGER_LOCK = threading.Lock() LOGFILES = {} @classmethod def open(cls, fn): with cls.SETUP 阅读全文