func internal/runtime/atomic.Cas
21 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)
runtime
mgcsweep.go#L71: for sOld < sNew && !atomic.Cas((*uint32)(s), uint32(sOld), uint32(sNew)) {
mgcsweep.go#L343: if !atomic.Cas(&s.sweepgen, l.sweepGen-2, l.sweepGen-1) {
proc.go#L1588: if s == _Psyscall && atomic.Cas(&pp.status, s, _Pgcstop) {
proc.go#L2093: if atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L2113: if s == _Psyscall && p2.runSafePointFn == 1 && atomic.Cas(&p2.status, s, _Pidle) {
proc.go#L2171: if !atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L2863: if !atomic.Cas(&newmHandoff.haveTemplateThread, 0, 1) {
proc.go#L3088: if pp.runSafePointFn != 0 && atomic.Cas(&pp.runSafePointFn, 1, 0) {
proc.go#L4570: if sched.stopwait > 0 && atomic.Cas(&pp.status, _Psyscall, _Pgcstop) {
proc.go#L4778: if oldp != nil && oldp.status == _Psyscall && atomic.Cas(&oldp.status, _Psyscall, _Pidle) {
proc.go#L6324: if atomic.Cas(&pp.status, s, _Pidle) {
runtime1.go#L220: if !atomic.Cas(&z, 1, 2) {
runtime1.go#L228: if atomic.Cas(&z, 5, 6) {
runtime1.go#L236: if !atomic.Cas(&z, 0xffffffff, 0xfffffffe) {
sema.go#L288: 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) {