MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / second_reader

Function second_reader

tests/test_locks.py:46–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 assert release_first.wait(timeout=2)
45
46 def second_reader():
47 assert first_entered.wait(timeout=2)
48 with kb_read_lock(openkb_dir):
49 second_entered.set()
50
51 first = threading.Thread(target=first_reader)
52 second = threading.Thread(target=second_reader)

Callers

nothing calls this directly

Calls 1

kb_read_lockFunction · 0.90

Tested by

no test coverage detected