MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder / Lock

Struct Lock

pkg/lock/lock.go:6–9  ·  view source on GitHub ↗

Lock try lock

Source from the content-addressed store, hash-verified

4
5// Lock try lock
6type Lock struct {
7 isLocked bool
8 ll sync.Mutex
9}
10
11// NewLock generate a try lock
12func NewLock() *Lock {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected