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

Function NewFileLockManager

cli/agent/workers/file_lock.go:16–20  ·  view source on GitHub ↗

NewFileLockManager creates a new FileLockManager.

()

Source from the content-addressed store, hash-verified

14
15// NewFileLockManager creates a new FileLockManager.
16func NewFileLockManager() *FileLockManager {
17 return &FileLockManager{
18 locks: make(map[string]*sync.Mutex),
19 }
20}
21
22// getLock returns or creates the mutex for a normalized file path.
23func (m *FileLockManager) getLock(path string) *sync.Mutex {

Calls

no outgoing calls