func sync/atomic.CompareAndSwapInt32

9 uses

	sync/atomic (current package)
		doc.go#L92: func CompareAndSwapInt32(addr *int32, old, new int32) (swapped bool)
		type.go#L84: 	return CompareAndSwapInt32(&x.v, old, new)

	sync
		mutex.go#L83: 	if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
		mutex.go#L107: 	if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
		mutex.go#L131: 				atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
		mutex.go#L162: 		if atomic.CompareAndSwapInt32(&m.state, old, new) {
		mutex.go#L245: 			if atomic.CompareAndSwapInt32(&m.state, old, new) {

	github.com/gotd/td/internal/tdsync
		ready.go#L29: 	if atomic.CompareAndSwapInt32(&r.done, 0, 1) {

	go.uber.org/atomic
		int32.go#L77: 	return atomic.CompareAndSwapInt32(&i.v, old, new)