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

Method acquire

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

Source from the content-addressed store, hash-verified

112 self._lock = _NixFileLock(path)
113
114 def acquire(self, blocking=True):
115 logger.debug('Acquiring %s (blocking=%s): %s', type(self).__name__, blocking, self.path)
116 return self._lock.acquire(blocking)
117
118 def release(self):
119 logger.debug('Ensuring %s released: %s', type(self).__name__, self.path)

Callers 8

_capture_port_no_lockMethod · 0.95
lockFunction · 0.95
_check_sloppy_forkMethod · 0.95
acquireMethod · 0.45
acquireMethod · 0.45
test_pidfilelockFunction · 0.45
_try_acquire_pidlockFunction · 0.45

Calls 2

typeClass · 0.50
debugMethod · 0.45

Tested by 3

lockFunction · 0.76
test_pidfilelockFunction · 0.36
_try_acquire_pidlockFunction · 0.36