class ClientThread(threading.Thread): def __init__(self, name): threading.Thread.__init__(self, name=name) self.ops = 0 self.decode = 0 self.setDaemon(True) self.bench = Bench() def run(self): while True: self.bench.encode() self.bench.decode() self.ops += 1
def __init__(self, name): threading.Thread.__init__(self, name=name) self.ops = 0 self.decode = 0 self.setDaemon(True) self.bench = Bench()