MCPcopy Create free account
hub / github.com/netdata/netdata / UnlockAll

Method UnlockAll

src/go/plugin/framework/filelock/filelock.go:57–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (l *Locker) UnlockAll() {
58 for key, locker := range l.locks {
59 delete(l.locks, key)
60 _ = locker.Close()
61 }
62}
63
64func (l *Locker) isLocked(name string) bool {
65 _, ok := l.locks[l.filename(name)]

Callers 1

TestLocker_UnlockAllFunction · 0.80

Calls 1

CloseMethod · 0.65

Tested by 1

TestLocker_UnlockAllFunction · 0.64