Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/golang/groupcache
/ Add
Method
Add
groupcache.go:482–484 ·
view source on GitHub ↗
Add atomically adds n to i.
(n int64)
Source
from the content-addressed store, hash-verified
480
481
// Add atomically adds n to i.
482
func
(i *AtomicInt) Add(n int64) {
483
atomic.AddInt64((*int64)(i), n)
484
}
485
486
// Get atomically gets the value of i.
487
func
(i *AtomicInt) Get() int64 {
Callers
3
Get
Method · 0.45
load
Method · 0.45
add
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected