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

Function hold_read

tests/test_read_write_unit.py:320–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318 acquired = threading.Event()
319
320 def hold_read() -> None:
321 with holder_lock.read_lock():
322 acquired.set()
323 threading.Event().wait(timeout=2)
324
325 thread = threading.Thread(target=hold_read)
326 thread.start()

Callers

nothing calls this directly

Calls 1

read_lockMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…