MCPcopy Create free account
hub / github.com/diillson/chatcli / Lock

Method Lock

cli/agent/workers/file_lock.go:41–43  ·  view source on GitHub ↗

Lock acquires the mutex for a given file path.

(path string)

Source from the content-addressed store, hash-verified

39
40// Lock acquires the mutex for a given file path.
41func (m *FileLockManager) Lock(path string) {
42 m.getLock(path).Lock()
43}
44
45// Unlock releases the mutex for a given file path.
46func (m *FileLockManager) Unlock(path string) {

Callers 15

RoundTripMethod · 0.80
AddSnapshotMethod · 0.80
AddLogsMethod · 0.80
AddAlertMethod · 0.80
SetMetricsMethod · 0.80
FeedMethod · 0.80
CloseMethod · 0.80
SnapshotMethod · 0.80

Calls 1

getLockMethod · 0.95