Method
__init__
(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
Tested by
no test coverage detected