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

Function funlock

openkb/locks.py:40–42  ·  view source on GitHub ↗

Release a lock previously acquired with :func:`flock`.

(fh: IO)

Source from the content-addressed store, hash-verified

38
39
40def funlock(fh: IO) -> None:
41 """Release a lock previously acquired with :func:`flock`."""
42 portalocker.unlock(fh)
43
44
45_LOCKS_GUARD = threading.Lock()

Callers 2

_with_global_config_lockFunction · 0.90
kb_lockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected