commit | 1dcf4eb48319b17edb44c44955ee2617ae4ee895 | [log] [tgz] |
---|---|---|
author | bill fumerola <billf@mu.org> | Mon Apr 10 17:14:58 2017 -0700 |
committer | GitHub <noreply@github.com> | Mon Apr 10 17:14:58 2017 -0700 |
tree | e47418de44b7fbabadc0fdad999a1ea4327db970 | |
parent | 3b8db5e93c4c02efbc313e17b2e796b0914a01fb [diff] |
Update lint-worthy version list (#20)
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.