client/vendor/go.uber.org/atomic
Navid Shaikh a32f5666b5 Vendors serving v0.9.0 (#458)
* Vendors serving v0.9.0

* Updates references per serving v0.9.0 vendoring

 - Updates code and tests to refer the required data structure and method/function calls
 - duckv1beta1 -> duckv1 conditions
 - traffic percent value is now *int64
 - containerConcurrency validation method relocation

* fix(golint): exported function should have comment

 for NonReadyConditionReason function

* Updates check for removing null targets

 fixes the pointer value check

* Updates per review comments
2019-10-27 22:22:36 -07:00
..
.codecov.yml Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
.gitignore Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
.travis.yml Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
LICENSE.txt Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
Makefile Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
README.md Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
atomic.go Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
error.go Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
glide.lock Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
glide.yaml Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07:00
string.go Vendors serving v0.9.0 (#458) 2019-10-27 22:22:36 -07: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.