sync/atomic.Int32.CompareAndSwap (method)

5 uses

	sync/atomic (current package)
		type.go#L83: func (x *Int32) CompareAndSwap(old, new int32) (swapped bool) {

	sync
		rwmutex.go#L97: 		if rw.readerCount.CompareAndSwap(c, c+1) {
		rwmutex.go#L177: 	if !rw.readerCount.CompareAndSwap(0, -rwmutexMaxReaders) {

	crypto/tls
		conn.go#L1187: 		if c.activeCall.CompareAndSwap(x, x+2) {
		conn.go#L1407: 		if c.activeCall.CompareAndSwap(x, x|1) {