(self, val=1)
increment counter by val (default is 1)
increment counter by val (default is 1)
increment counter by val ( default is 1 )
def inc(self, val=1):
        "increment counter by val (default is 1)"
        with self.lock:
            self.counter = self.counter + val
def inc ( self , val = 1 ) : with self . lock : self . counter = self . counter + val