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

Method acquire

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

Source from the content-addressed store, hash-verified

154 _LockedBytes = _WinFileLock._LOCKED_BYTES_NUM
155
156 def acquire(self, blocking=True):
157 if super(_WinPidFileLock, self).acquire(blocking):
158 self._register_lock()
159 return True
160 return False
161
162
163class PidFileLock(FileLock):

Callers

nothing calls this directly

Calls 2

_register_lockMethod · 0.80
acquireMethod · 0.45

Tested by

no test coverage detected