runtime/internal/atomic.Int32.CompareAndSwap (method)

3 uses

	runtime/internal/atomic (current package)
		types.go#L36: func (i *Int32) CompareAndSwap(old, new int32) bool {

	runtime
		proc.go#L2680: 	if sched.nmspinning.Load()+sched.npidle.Load() == 0 && sched.nmspinning.CompareAndSwap(0, 1) { // TODO: fast atomic
		proc.go#L2732: 	if sched.nmspinning.Load() != 0 || !sched.nmspinning.CompareAndSwap(0, 1) {