(lock_file: str, downgrade_result: Synchronized[int])
| 271 | |
| 272 | |
| 273 | def try_downgrade_lock(lock_file: str, downgrade_result: Synchronized[int]) -> None: |
| 274 | lock = ReadWriteLock(lock_file) |
| 275 | with lock.write_lock(): |
| 276 | try: |
| 277 | lock.acquire_read() |
| 278 | except RuntimeError: |
| 279 | downgrade_result.value = 0 |
| 280 | |
| 281 | |
| 282 | @pytest.mark.timeout(10) |
nothing calls this directly
no test coverage detected
searching dependent graphs…