示例#1
0
 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'])
示例#2
0
 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'])
示例#3
0
 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