(backend: str, path: str)
| 164 | |
| 165 | |
| 166 | def _hammer(backend: str, path: str) -> None: |
| 167 | lock = FileLock(path) if backend == "FileLock" else StrictSoftFileLock(path) |
| 168 | for _ in range(_CONTENTION_ACQUISITIONS): |
| 169 | lock.acquire() |
| 170 | lock.release() |
| 171 | |
| 172 | |
| 173 | def _timed(name: str, run: Callable[[], object], *, unit: str, scale: float) -> Sample: |
nothing calls this directly
no test coverage detected