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

Function kb_read_lock

openkb/locks.py:178–180  ·  view source on GitHub ↗

Hold a shared KB read lock.

(openkb_dir: Path)

Source from the content-addressed store, hash-verified

176
177
178def kb_read_lock(openkb_dir: Path):
179 """Hold a shared KB read lock."""
180 return kb_lock(openkb_dir, exclusive=False)
181
182
183def _fsync_directory(path: Path) -> None:

Callers 8

first_readerFunction · 0.90
second_readerFunction · 0.90
wrapperFunction · 0.90
run_lintFunction · 0.90
_handle_slashFunction · 0.90

Calls 1

kb_lockFunction · 0.85

Tested by 5

first_readerFunction · 0.72
second_readerFunction · 0.72