MCPcopy
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.
482func (i *AtomicInt) Add(n int64) {
483 atomic.AddInt64((*int64)(i), n)
484}
485
486// Get atomically gets the value of i.
487func (i *AtomicInt) Get() int64 {

Callers 3

GetMethod · 0.45
loadMethod · 0.45
addMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected