| 61 | ) |
| 62 | |
| 63 | type _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 |
| 80 | type LockStoreOptions struct { |
nothing calls this directly
no outgoing calls
no test coverage detected