func internal/runtime/atomic.Cas

22 uses

	internal/runtime/atomic (current package)
		stubs.go#L12: func Cas(ptr *uint32, old, new uint32) bool
		types.go#L236: 	return Cas(&u.value, old, new)
		xchg8.go#L27: 		if Cas(addr32, old, (old&^mask)|word) {

	runtime
		mgcsweep.go#L71: 	for sOld < sNew && !atomic.Cas((*uint32)(s), uint32(sOld), uint32(sNew)) {
		mgcsweep.go#L350: 	if !atomic.Cas(&s.sweepgen, l.sweepGen-2, l.sweepGen-1) {
		proc.go#L1665: 		if s == _Psyscall && atomic.Cas(&pp.status, s, _Pgcstop) {
		proc.go#L2174: 		if atomic.Cas(&p.runSafePointFn, 1, 0) {
		proc.go#L2194: 		if s == _Psyscall && p2.runSafePointFn == 1 && atomic.Cas(&p2.status, s, _Pidle) {
		proc.go#L2252: 	if !atomic.Cas(&p.runSafePointFn, 1, 0) {
		proc.go#L2948: 	if !atomic.Cas(&newmHandoff.haveTemplateThread, 0, 1) {
		proc.go#L3173: 	if pp.runSafePointFn != 0 && atomic.Cas(&pp.runSafePointFn, 1, 0) {
		proc.go#L4687: 	if sched.stopwait > 0 && atomic.Cas(&pp.status, _Psyscall, _Pgcstop) {
		proc.go#L4895: 	if oldp != nil && oldp.status == _Psyscall && atomic.Cas(&oldp.status, _Psyscall, _Pidle) {
		proc.go#L6448: 			if atomic.Cas(&pp.status, s, _Pidle) {
		runtime1.go#L221: 	if !atomic.Cas(&z, 1, 2) {
		runtime1.go#L229: 	if atomic.Cas(&z, 5, 6) {
		runtime1.go#L237: 	if !atomic.Cas(&z, 0xffffffff, 0xfffffffe) {
		sema.go#L297: 		if atomic.Cas(addr, v, v-1) {
		signal_unix.go#L204: 		if atomic.Cas(&handlingSig[sig], 0, 1) {
		signal_unix.go#L282: 		if atomic.Cas(&handlingSig[_SIGPROF], 0, 1) {
		signal_unix.go#L318: 			if atomic.Cas(&handlingSig[_SIGPROF], 1, 0) {
		sigqueue.go#L92: 		if atomic.Cas(&sig.mask[s/32], mask, mask|bit) {