sync/atomic.Bool.CompareAndSwap (method)
4 uses
sync/atomic (current package)
type.go#L26: func (x *Bool) CompareAndSwap(old, new bool) (swapped bool) {
crypto/internal/sysrand
rand.go#L35: if firstUse.CompareAndSwap(false, true) {
google.golang.org/grpc/internal/grpcsync
event.go#L38: if e.fired.CompareAndSwap(false, true) {
testing
testing.go#L1485: if c.raceErrorLogged.CompareAndSwap(false, true) {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)