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

Function first_reader

tests/test_locks.py:41–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 second_entered = threading.Event()
40
41 def first_reader():
42 with kb_read_lock(openkb_dir):
43 first_entered.set()
44 assert release_first.wait(timeout=2)
45
46 def second_reader():
47 assert first_entered.wait(timeout=2)

Callers

nothing calls this directly

Calls 1

kb_read_lockFunction · 0.90

Tested by

no test coverage detected