MCPcopy
hub / github.com/rclone/rclone / newStringLock

Function newStringLock

backend/sftp/stringlock.go:14–18  ·  view source on GitHub ↗

newStringLock creates a stringLock

()

Source from the content-addressed store, hash-verified

12
13// newStringLock creates a stringLock
14func newStringLock() *stringLock {
15 return &stringLock{
16 locks: make(map[string]chan struct{}),
17 }
18}
19
20// Lock locks on the id passed in
21func (l *stringLock) Lock(ID string) {

Callers 2

TestStringLockFunction · 0.85
NewFsWithConnectionFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestStringLockFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…