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

Function hold_write

tests/test_read_write_unit.py:300–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298 acquired = threading.Event()
299
300 def hold_write() -> None:
301 with holder_lock.write_lock():
302 acquired.set()
303 threading.Event().wait(timeout=2)
304
305 thread = threading.Thread(target=hold_write)
306 thread.start()

Callers

nothing calls this directly

Calls 1

write_lockMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…