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

Function _hold_until

tasks/benchmark.py:141–146  ·  view source on GitHub ↗
(path: str, acquired: EventType, release: EventType)

Source from the content-addressed store, hash-verified

139
140
141def _hold_until(path: str, acquired: EventType, release: EventType) -> None:
142 lock = FileLock(path)
143 lock.acquire()
144 acquired.set()
145 release.wait(timeout=30)
146 lock.release()
147
148
149def _contention(root: Path) -> list[Sample]:

Callers

nothing calls this directly

Calls 3

waitMethod · 0.80
acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected