MCPcopy Create free account
hub / github.com/catboost/catboost / acquire

Method acquire

library/python/filelock/__init__.py:146–150  ·  view source on GitHub ↗
(self, blocking=True)

Source from the content-addressed store, hash-verified

144
145class _NixPidFileLock(_NixFileLock, _PidLockMixin):
146 def acquire(self, blocking=True):
147 if super(_NixPidFileLock, self).acquire(blocking):
148 self._register_lock()
149 return True
150 return False
151
152
153class _WinPidFileLock(_WinFileLock, _PidLockMixin):

Callers

nothing calls this directly

Calls 2

_register_lockMethod · 0.80
acquireMethod · 0.45

Tested by

no test coverage detected