commit | 1d7f075bbe2659dfefbcb41e135048f29da50547 | [log] [tgz] |
---|---|---|
author | Oleg Kovalov <iamolegkovalov@gmail.com> | Sun Apr 30 20:40:09 2017 +0300 |
committer | Prashant Varanasi <github@prashantv.com> | Sun Apr 30 10:40:09 2017 -0700 |
tree | ee44334f510c58f3372958715618318e6048c362 | |
parent | 4e336646b2ef9fc6e47be8e21594178f98e5ebcf [diff] |
Update Travis to run Go 1.7 and 1.8 versions (#22)
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.