MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Add

Method Add

base/util.go:1261–1263  ·  view source on GitHub ↗

Add adds the given value to the atomic int.

(value int64)

Source from the content-addressed store, hash-verified

1259
1260// Add adds the given value to the atomic int.
1261func (ai *AtomicInt) Add(value int64) {
1262 atomic.AddInt64(&ai.val, value)
1263}
1264
1265func (ai *AtomicInt) Value() int64 {
1266 return atomic.LoadInt64(&ai.val)

Callers 3

DurationToCbsExpiryFunction · 0.45
CbsExpiryToTimeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected