sync/atomic.Int64.CompareAndSwap (method)
4 uses
sync/atomic (current package)
type.go#L115: func (x *Int64) CompareAndSwap(old, new int64) (swapped bool) {
go.uber.org/zap/zapcore
sampler.go#L74: if !c.resetAt.CompareAndSwap(resetAfter, newResetAfter) {
testing
testing.go#L1480: if c.lastRaceErrors.CompareAndSwap(last, raceErrors) {
testing.go#L1502: if parent.lastRaceErrors.CompareAndSwap(last, raceErrors) {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)