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