MCPcopy
hub / github.com/CodisLabs/codis / Add

Method Add

pkg/utils/sync2/atomic2/atomic64.go:30–32  ·  view source on GitHub ↗
(v int64)

Source from the content-addressed store, hash-verified

28}
29
30func (a *Int64) Add(v int64) int64 {
31 return atomic.AddInt64((*int64)(a), v)
32}
33
34func (a *Int64) Sub(v int64) int64 {
35 return a.Add(-v)

Callers 3

SubMethod · 0.95
IncrMethod · 0.95
DecrMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected