parameters: (self)
return_statement: return self._locked
docstring: Return True if lock is acquired.
docstring_summary: Return True if lock is acquired.
docstring_tokens: Return True if lock is acquired .
function: def locked(self):
          """Return True if lock is acquired."""
          return self._locked
function_tokens: def locked ( self ) : return self . _locked