commit | 187d219e0c37dd5ba4f4dbadd4794275167b460d | [log] [tgz] |
---|---|---|
author | Abhinav Gupta <abg@uber.com> | Tue Oct 29 14:13:54 2019 -0700 |
committer | GitHub <noreply@github.com> | Tue Oct 29 14:13:54 2019 -0700 |
tree | 79f6480f84e503c6cee8dcaabd97c9154700421c | |
parent | ef0d20d85b01f4708a8085bca571838bf59a3f77 [diff] |
Add a CHANGELOG (#57) This adds a CHANGELOG.md to the project, retroactively filling it up based on https://github.com/uber-go/atomic/releases.
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.