MCPcopy
hub / github.com/dropbox/godropbox / Lock

Method Lock

container/concurrent/lockstore/store.go:119–121  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

117}
118
119func (p *_LockStoreImp) Lock(key string) {
120 p.lock(key, _Lock)
121}
122
123func (p *_LockStoreImp) TryRLock(key string, timeout time.Duration) (success bool) {
124 return p.tryLock(key, timeout, _RLock, _RUnlock)

Callers

nothing calls this directly

Calls 1

lockMethod · 0.95

Tested by

no test coverage detected