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

Class BlockingTransitionLock

tests/core/test_fork_coordination.py:298–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 entered, release, finished = threading.Event(), threading.Event(), threading.Event()
297
298 class BlockingTransitionLock(BaseFileLock):
299 @override
300 def _acquire(self) -> None:
301 entered.set()
302 release.wait(timeout=5)
303 self._context.lock_file_fd = None
304
305 _release = _acquire
306
307 def acquire() -> None:
308 try:

Callers 1

acquireFunction · 0.85

Calls

no outgoing calls

Tested by 1

acquireFunction · 0.68