Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
178
def
kb_read_lock(openkb_dir: Path):
179
""
"Hold a shared KB read lock."
""
180
return
kb_lock(openkb_dir, exclusive=False)
181
182
183
def
_fsync_directory(path: Path) -> None:
Callers
8
test_read_lock_is_reentrant
Function · 0.90
first_reader
Function · 0.90
second_reader
Function · 0.90
test_read_to_write_upgrade_fails
Function · 0.90
test_write_lock_can_take_nested_read
Function · 0.90
wrapper
Function · 0.90
run_lint
Function · 0.90
_handle_slash
Function · 0.90
Calls
1
kb_lock
Function · 0.85
Tested by
5
test_read_lock_is_reentrant
Function · 0.72
first_reader
Function · 0.72
second_reader
Function · 0.72
test_read_to_write_upgrade_fails
Function · 0.72
test_write_lock_can_take_nested_read
Function · 0.72