commit | 5a6ca662548f17725b236433764681f0f028bb38 | [log] [tgz] |
---|---|---|
author | Abhinav Gupta <abg@uber.com> | Mon Apr 29 13:45:39 2019 -0700 |
committer | GitHub <noreply@github.com> | Mon Apr 29 13:45:39 2019 -0700 |
tree | c0add276f2c62672ca4864532273e2fe50fe3bd3 | |
parent | 5328d69c76a98d1d21c773653a5a78fa28d89921 [diff] |
README: Switch to travis-ci.com for badge (#51)
Simple wrappers for primitive types to enforce atomic access.
go get -u go.uber.org/atomic
The standard library‘s sync/atomic
is powerful, but it’s easy to forget which variables must be accessed atomically. go.uber.org/atomic
preserves all the functionality of the standard library, but wraps the primitive 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.
Released under the MIT License.