MCPcopy Create free account
hub / github.com/tox-dev/filelock / UnixFileLock

Class UnixFileLock

src/filelock/_unix.py:18–25  ·  view source on GitHub ↗

Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.

Source from the content-addressed store, hash-verified

16if sys.platform == "win32": # pragma: win32 cover
17
18 class UnixFileLock(BaseFileLock):
19 """Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems."""
20
21 def _acquire(self) -> None:
22 raise NotImplementedError
23
24 def _release(self) -> None:
25 raise NotImplementedError
26
27else: # pragma: win32 no cover
28 try:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…