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

Struct _LockStoreImp

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

Source from the content-addressed store, hash-verified

61)
62
63type _LockStoreImp struct {
64 granularity LockingGranularity
65
66 // full store lock
67 storeLock sync.RWMutex
68
69 // sharded locks
70 shardedLocks []*sync.RWMutex
71
72 // per key locks
73 perKeyLocks map[string]*_LockImp
74
75 // test helpers
76 testTryLockCallback func()
77}
78
79// LockStoreOptions provides options for creating the LockStore
80type LockStoreOptions struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected