MCPcopy Create free account
hub / github.com/aclements/go-misc / Get

Method Get

split/value.go:113–159  ·  view source on GitHub ↗

Get returns a pointer to some shard of v. Get may return the same pointer to multiple goroutines, so the caller is responsible for synchronizing concurrent access to the returned value. This can be done using atomic operations or locks, just like any other shared structure. Get attempts to maintai

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 14

newValueLoggerLockedFunction · 0.45
newValueLoggerFunction · 0.45
appendMethod · 0.45
Example_counterFunction · 0.45
Example_loggingFunction · 0.45
Example_randomSourceFunction · 0.45

Calls 3

shardMethod · 0.95
runtime_procPinFunction · 0.85
runtime_procUnpinFunction · 0.85

Tested by 14

newValueLoggerLockedFunction · 0.36
newValueLoggerFunction · 0.36
appendMethod · 0.36
Example_counterFunction · 0.36
Example_loggingFunction · 0.36
Example_randomSourceFunction · 0.36