parameters: (self, waitflag=None, timeout=-1)
return_statement: return locked
docstring: Aquire the lock, can be called multiple times in succession.
docstring_summary: Aquire the lock, can be called multiple times in succession.
docstring_tokens: Aquire the lock can be called multiple times in succession .
function: def acquire(self, waitflag=None, timeout=-1):
          """Aquire the lock, can be called multiple times in succession.
          """
          locked = super().acquire(waitflag, timeout)
          if locked:
              self._levels += 1
          return locked
function_tokens: def acquire ( self , waitflag = None , timeout = - 1 ) : locked = super ( ) . acquire ( waitflag , timeout ) if locked : self . _levels += 1 return locked