commit | 74ca5ec650841aee9f289dce76e928313a37cbc6 | [log] [tgz] |
---|---|---|
author | Bill Fumerola <billf@uber.com> | Tue Dec 13 10:45:32 2016 -0800 |
committer | bill fumerola <billf@mu.org> | Wed Dec 14 13:12:48 2016 -0800 |
tree | f3fec4336e87886a4e5dc268f7852bf8eacce53a | |
parent | 14746df0c213f3a48f7f64637c6981f9285005f3 [diff] |
Add stress test for Float64
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.