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

Method Lock

lockstore/store.go:17–17  ·  view source on GitHub ↗

Lock locks the mutex that is used for the given key

(key string)

Source from the content-addressed store, hash-verified

15type LockStore interface {
16 // Lock locks the mutex that is used for the given key
17 Lock(key string)
18
19 // TryLock attempts to acquire the lock given the timeout. Returns
20 // true if it successfully acquire the lock. False otherwise

Callers 15

internMethod · 0.65
SetMethod · 0.65
DeleteMethod · 0.65
GetMultipleMethod · 0.65
SetMethod · 0.65
SetMultipleMethod · 0.65
DeleteMethod · 0.65
ClearMethod · 0.65
tryLockMethod · 0.65
lockMethod · 0.65
unlockMethod · 0.65
DeleteMethod · 0.65

Implementers 3

_LockStoreImpcontainer/concurrent/lockstore/store.g
FileLocksys/filelock/filelock.go
_LockStoreImplockstore/store.go

Calls

no outgoing calls

Tested by 15

TestLockKeySimpleMethod · 0.52
TestLockKeySimple2Method · 0.52
testLockKeyParallelMethod · 0.52
TestLockKeyMultipleMethod · 0.52
TestSimpleMethod · 0.52
TestSharedSimpleMethod · 0.52
TestReuseSimpleMethod · 0.52
performTransitionFunction · 0.52