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

Function acquire_write_in_thread

tests/test_read_write_unit.py:676–681  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

674 real_acquire_tx(blocking=blocking, timeout=timeout)
675
676 def acquire_write_in_thread() -> None:
677 writer_tid["id"] = threading.get_ident()
678 try:
679 lock.acquire_write(timeout=5)
680 except RuntimeError as exc:
681 errors["writer"] = exc
682
683 lock._acquire_transaction_lock = gated # ty: ignore[invalid-assignment]
684 thread = threading.Thread(target=acquire_write_in_thread)

Callers

nothing calls this directly

Calls 1

acquire_writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…