Mainflux.mainflux/vendor/go.uber.org/atomic
Jovan Kostovski 7fe8100d6b replaced glide with dep dependency manager
Signed-off-by: Jovan Kostovski <chombium@gmail.com>
2018-02-14 18:28:42 +01:00
..
.codecov.yml Add circuit breaker toward the manager service 2017-12-12 11:20:57 +01:00
.gitignore Add normalizer 2017-09-24 15:33:58 +02:00
.travis.yml Add circuit breaker toward the manager service 2017-12-12 11:20:57 +01:00
LICENSE.txt Add normalizer 2017-09-24 15:33:58 +02:00
Makefile Add normalizer 2017-09-24 15:33:58 +02:00
README.md Add circuit breaker toward the manager service 2017-12-12 11:20:57 +01:00
atomic.go Add circuit breaker toward the manager service 2017-12-12 11:20:57 +01:00
glide.lock Add normalizer 2017-09-24 15:33:58 +02:00
glide.yaml Add normalizer 2017-09-24 15:33:58 +02:00
string.go Add circuit breaker toward the manager service 2017-12-12 11:20:57 +01:00

README.md

atomic GoDoc Build Status Coverage Status Go Report Card

Simple wrappers for primitive types to enforce atomic access.

Installation

go get -u go.uber.org/atomic

Usage

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.

Development Status

Stable.


Released under the [MIT License](LICENSE.txt).