Get atomically gets the value of i.
()
| 485 | |
| 486 | // Get atomically gets the value of i. |
| 487 | func (i *AtomicInt) Get() int64 { |
| 488 | return atomic.LoadInt64((*int64)(i)) |
| 489 | } |
| 490 | |
| 491 | func (i *AtomicInt) String() string { |
| 492 | return strconv.FormatInt(i.Get(), 10) |