Shadow atomic.Value from sync/atomic (#19)

This commit is contained in:
bill fumerola
2017-04-10 19:30:53 -07:00
committed by GitHub
parent 1dcf4eb483
commit 4e336646b2
2 changed files with 18 additions and 0 deletions

View File

@@ -298,3 +298,7 @@ func (f *Float64) Sub(s float64) float64 {
func (f *Float64) CAS(old, new float64) bool {
return atomic.CompareAndSwapUint64(&f.v, math.Float64bits(old), math.Float64bits(new))
}
// Value shadows the type of the same name from sync/atomic
// https://godoc.org/sync/atomic#Value
type Value struct{ atomic.Value }