Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/VectifyAI/OpenKB
/ _held_locks
Function
_held_locks
openkb/locks.py:84–89 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
82
83
84
def
_held_locks() -> dict[Path, tuple[int, int]]:
85
held = getattr(_HELD_LOCKS,
"counts"
, None)
86
if
held is None:
87
held = {}
88
_HELD_LOCKS.counts = held
89
return
held
90
91
92
def
_local_lock(lock_path: Path) -> _LocalRwLock:
Callers
1
kb_lock
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected