(backend: str, path: str)
| 177 | |
| 178 | |
| 179 | def _hammer(backend: str, path: str) -> None: |
| 180 | lock = FileLock(path) if backend == "FileLock" else StrictSoftFileLock(path) |
| 181 | for _ in range(_CONTENTION_ACQUISITIONS): |
| 182 | lock.acquire() |
| 183 | lock.release() |
| 184 | |
| 185 | |
| 186 | def _timed(name: str, run: Callable[[], object], *, unit: str, scale: float) -> Sample: |
nothing calls this directly
no test coverage detected