(self)
reset counter to 0
reset counter to 0
reset counter to 0
def clear(self):
        "reset counter to 0"
        with self.lock:
            self.counter = 0
def clear ( self ) : with self . lock : self . counter = 0