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

Function _late_reader

tests/sqlite/test_lock_contention.py:207–210  ·  view source on GitHub ↗
(lock_file: str, announced: EventType, entries: Synchronized[int])

Source from the content-addressed store, hash-verified

205
206
207def _late_reader(lock_file: str, announced: EventType, entries: Synchronized[int]) -> None:
208 announced.set()
209 with ReadWriteLock(lock_file).read_lock(), entries.get_lock():
210 entries.value += 1
211
212
213def _write_intent_pending(prober: ReadWriteLock, deadline: float) -> bool:

Callers

nothing calls this directly

Calls 3

ReadWriteLockClass · 0.90
read_lockMethod · 0.45
get_lockMethod · 0.45

Tested by

no test coverage detected