commit | ca680462431f8c7f96686d91b1d9e5203c4b075b | [log] [tgz] |
---|---|---|
author | Oleg Kovalov <iamolegkovalov@gmail.com> | Mon Aug 06 06:53:14 2018 +0200 |
committer | Prashant Varanasi <github@prashantv.com> | Sun Aug 05 21:53:14 2018 -0700 |
tree | 5367a33d45a23333dead53fc73180b6f00b06bb0 | |
parent | 1ea20fb1cbb1cc08cbd0d913a96dead89aa18289 [diff] |
Update Go versions on Travis (#41)
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.