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

Method _register_lock

library/python/filelock/__init__.py:131–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 _InfoFmtSize = struct.calcsize(_InfoFormat)
130
131 def _register_lock(self):
132 self._lock.seek(self._LockedBytes, os.SEEK_SET)
133 self._lock.write(struct.pack(self._InfoFormat, os.getpid(), int(time.time())))
134
135 @property
136 def info(self):

Callers 2

acquireMethod · 0.80
acquireMethod · 0.80

Calls 3

packMethod · 0.80
intFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected