MCPcopy
hub / github.com/google/mangle / NewConcurrentFactStore

Function NewConcurrentFactStore

factstore/factstore.go:1017–1019  ·  view source on GitHub ↗

NewConcurrentFactStore returns a new ConcurrentFactStore that wraps the given FactStore.

(base FactStoreWithRemove)

Source from the content-addressed store, hash-verified

1015
1016// NewConcurrentFactStore returns a new ConcurrentFactStore that wraps the given FactStore.
1017func NewConcurrentFactStore(base FactStoreWithRemove) ConcurrentFactStore {
1018 return ConcurrentFactStore{&sync.RWMutex{}, base}
1019}

Callers 2

factstore.goFile · 0.85
TestAddContainsRemoveFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAddContainsRemoveFunction · 0.68