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

Method __init__

tests/core/test_fork_construction.py:354–358  ·  view source on GitHub ↗
(self, lock_file: str, *, is_singleton: bool = False)

Source from the content-addressed store, hash-verified

352
353 class BlockingLock(BaseFileLock):
354 def __init__(self, lock_file: str, *, is_singleton: bool = False) -> None:
355 if os.getpid() == parent_pid:
356 entered.set()
357 release.wait(timeout=5)
358 super().__init__(lock_file, thread_local=False, is_singleton=is_singleton)
359
360 @override
361 def _acquire(self) -> None:

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected