commit | e682c1008ac17bf26d2e4b5ad6cdd08520ed0b22 | [log] [tgz] |
---|---|---|
author | Prashant Varanasi <prashant@uber.com> | Tue May 31 17:23:56 2016 -0700 |
committer | Prashant Varanasi <prashant@uber.com> | Tue May 31 17:23:56 2016 -0700 |
tree | 84632257caaa26cbac80df5fb2218cd2edd79e45 | |
parent | b4ee65f3b3988930a77dacc319e5ff9a6f0e91c9 [diff] |
Fix glide.yaml and run glide up
Simple numeric wrappers to enforce atomic access.
go get -u github.com/uber-go/atomic
The standard library‘s sync/atomic
is powerful, but it’s easy to forget which variables must be accessed atomically. uber-go/atomic
preserves all the functionality of the standard library, but wraps the primitive numeric types to provide a safer, more convenient API.
var atom atomic.Uint32
atom.Store(42)
atom.Sub(2)
atom.CAS(40, 11)
See the documentation for a complete API specification.
Stable.