parameters: (self)
docstring: Acquire an exclusive lock on the currently-loaded session data.
docstring_summary: Acquire an exclusive lock on the currently-loaded session data.
docstring_tokens: Acquire an exclusive lock on the currently - loaded session data .
function: def acquire_lock(self):
          """Acquire an exclusive lock on the currently-loaded session data."""
          self.locked = True
          self.locks.setdefault(self.id, threading.RLock()).acquire()
function_tokens: def acquire_lock ( self ) : self . locked = True self . locks . setdefault ( self . id , threading . RLock ( ) ) . acquire ( )