コード例 #1
0
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
コード例 #2
0
    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
コード例 #3
0
 def __init__(self, name):
     threading.Thread.__init__(self, name=name)
     self.ops = 0
     self.decode = 0
     self.setDaemon(True)
     self.bench = Bench()
コード例 #4
0
 def __init__(self, name):
     threading.Thread.__init__(self, name=name)
     self.ops = 0
     self.decode = 0
     self.setDaemon(True)
     self.bench = Bench()