def __init__(self, opt): self.opt = opt self.counter = common.counterClass() self.counter.threadid = 0 self.threads = [] self.maxthreads = int(opt['concurrentthreads']) self.maxtimeout = int(self.opt['threadtimeout'])
def __init__(self, opt): self.opt = opt self.urls = {} self.lock = threading.Lock() self.counter = common.counterClass() self.counter.todo = 0 self.counter.done = 0 self.counter.work = 0