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

Function acquire

tests/test_fork_coordination.py:1113–1117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1111 _release = _acquire
1112
1113 def acquire() -> None:
1114 try:
1115 BlockingTransitionLock(str(tmp_path / "transition.lock"), is_singleton=False).acquire(timeout=0)
1116 except Timeout:
1117 finished.set()
1118
1119 worker = threading.Thread(target=acquire)
1120 worker.start()

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45

Tested by

no test coverage detected