func runtime/internal/atomic.Cas
79 uses
runtime/internal/atomic (current package)
stubs.go#L12: func Cas(ptr *uint32, old, new uint32) bool
runtime
chan.go#L812: if sgp.isSelect && !atomic.Cas(&sgp.g.selectDone, 0, 1) {
cpuprof.go#L93: for !atomic.Cas(&prof.signalLock, 0, 1) {
cpuprof.go#L126: for !atomic.Cas(&prof.signalLock, 0, 1) {
debuglog.go#L66: if atomic.Load(&l1.owned) == 0 && atomic.Cas(&l1.owned, 0, 1) {
mcentral.go#L119: if atomic.Load(&s.sweepgen) == sg-2 && atomic.Cas(&s.sweepgen, sg-2, sg-1) {
mcentral.go#L138: if atomic.Load(&s.sweepgen) == sg-2 && atomic.Cas(&s.sweepgen, sg-2, sg-1) {
mfinal.go#L155: if fingCreate == 0 && atomic.Cas(&fingCreate, 0, 1) {
mgcsweep.go#L71: for sOld < sNew && !atomic.Cas((*uint32)(s), uint32(sOld), uint32(sNew)) {
mgcsweep.go#L220: if s.sweepgen == sg-2 && atomic.Cas(&s.sweepgen, sg-2, sg-1) {
mgcsweep.go#L301: if atomic.Cas(&s.sweepgen, sg-2, sg-1) {
mheap.go#L846: if atomic.Load(&s.sweepgen) == sg-2 && atomic.Cas(&s.sweepgen, sg-2, sg-1) {
netpoll_kqueue.go#L86: if atomic.Cas(&netpollWakeSig, 0, 1) {
proc.go#L852: success = atomic.Cas(&gp.atomicstatus, oldval, newval)
proc.go#L872: r := atomic.Cas(&gp.atomicstatus, oldval, newval)
proc.go#L907: for i := 0; !atomic.Cas(&gp.atomicstatus, oldval, newval); i++ {
proc.go#L937: if atomic.Cas(&gp.atomicstatus, oldstatus, _Gcopystack) {
proc.go#L952: for !atomic.Cas(&gp.atomicstatus, _Grunning, _Gscan|_Gpreempted) {
proc.go#L963: return atomic.Cas(&gp.atomicstatus, _Gpreempted, _Gwaiting)
proc.go#L1092: if s == _Psyscall && atomic.Cas(&p.status, s, _Pgcstop) {
proc.go#L1495: if atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L1511: if s == _Psyscall && p.runSafePointFn == 1 && atomic.Cas(&p.status, s, _Pidle) {
proc.go#L1688: if !atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L2140: if !atomic.Cas(&newmHandoff.haveTemplateThread, 0, 1) {
proc.go#L2378: if atomic.Load(&sched.nmspinning)+atomic.Load(&sched.npidle) == 0 && atomic.Cas(&sched.nmspinning, 0, 1) { // TODO: fast atomic
proc.go#L2392: if _p_.runSafePointFn != 0 && atomic.Cas(&_p_.runSafePointFn, 1, 0) {
proc.go#L2430: if atomic.Load(&sched.nmspinning) != 0 || !atomic.Cas(&sched.nmspinning, 0, 1) {
proc.go#L3582: if sched.stopwait > 0 && atomic.Cas(&_p_.status, _Psyscall, _Pgcstop) {
proc.go#L3741: if oldp != nil && oldp.status == _Psyscall && atomic.Cas(&oldp.status, _Psyscall, _Pidle) {
proc.go#L4619: for !atomic.Cas(&prof.signalLock, 0, 1) {
proc.go#L5315: if atomic.Cas(&_p_.status, s, _Pidle) {
runtime1.go#L215: if !atomic.Cas(&z, 1, 2) {
runtime1.go#L223: if atomic.Cas(&z, 5, 6) {
runtime1.go#L231: if !atomic.Cas(&z, 0xffffffff, 0xfffffffe) {
sema.go#L227: if atomic.Cas(addr, v, v-1) {
signal_unix.go#L194: if atomic.Cas(&handlingSig[sig], 0, 1) {
signal_unix.go#L271: if atomic.Cas(&handlingSig[_SIGPROF], 0, 1) {
signal_unix.go#L297: if atomic.Cas(&handlingSig[_SIGPROF], 1, 0) {
signal_unix.go#L359: if atomic.Cas(&mp.signalPending, 0, 1) {
sigqueue.go#L93: if atomic.Cas(&sig.mask[s/32], mask, mask|bit) {
sigqueue.go#L105: if atomic.Cas(&sig.state, sigIdle, sigSending) {
sigqueue.go#L112: if atomic.Cas(&sig.state, sigReceiving, sigIdle) {
sigqueue.go#L138: if atomic.Cas(&sig.state, sigReceiving, sigFixup) {
sigqueue.go#L163: if atomic.Cas(&sig.state, sigIdle, sigReceiving) {
sigqueue.go#L170: if !atomic.Cas(&sig.state, sigFixup, sigIdle) {
sigqueue.go#L182: if atomic.Cas(&sig.state, sigSending, sigIdle) {
time.go#L313: if atomic.Cas(&t.status, s, timerModifying) {
time.go#L318: if !atomic.Cas(&t.status, timerModifying, timerDeleted) {
time.go#L332: if atomic.Cas(&t.status, s, timerModifying) {
time.go#L337: if !atomic.Cas(&t.status, timerModifying, timerDeleted) {
time.go#L441: if atomic.Cas(&t.status, status, timerModifying) {
time.go#L453: if atomic.Cas(&t.status, status, timerModifying) {
time.go#L463: if atomic.Cas(&t.status, status, timerModifying) {
time.go#L493: if !atomic.Cas(&t.status, timerModifying, timerWaiting) {
time.go#L529: if !atomic.Cas(&t.status, timerModifying, newStatus) {
time.go#L577: if !atomic.Cas(&t.status, s, timerRemoving) {
time.go#L581: if !atomic.Cas(&t.status, timerRemoving, timerRemoved) {
time.go#L586: if !atomic.Cas(&t.status, s, timerMoving) {
time.go#L597: if !atomic.Cas(&t.status, timerMoving, timerWaiting) {
time.go#L617: if !atomic.Cas(&t.status, s, timerMoving) {
time.go#L622: if !atomic.Cas(&t.status, timerMoving, timerWaiting) {
time.go#L627: if !atomic.Cas(&t.status, s, timerMoving) {
time.go#L633: if !atomic.Cas(&t.status, timerMoving, timerWaiting) {
time.go#L638: if !atomic.Cas(&t.status, s, timerRemoved) {
time.go#L705: if atomic.Cas(&t.status, s, timerRemoving) {
time.go#L707: if !atomic.Cas(&t.status, timerRemoving, timerRemoved) {
time.go#L715: if atomic.Cas(&t.status, s, timerMoving) {
time.go#L759: if !atomic.Cas(&t.status, timerMoving, timerWaiting) {
time.go#L799: if !atomic.Cas(&t.status, s, timerRunning) {
time.go#L808: if !atomic.Cas(&t.status, s, timerRemoving) {
time.go#L812: if !atomic.Cas(&t.status, timerRemoving, timerRemoved) {
time.go#L821: if !atomic.Cas(&t.status, s, timerMoving) {
time.go#L830: if !atomic.Cas(&t.status, timerMoving, timerWaiting) {
time.go#L876: if !atomic.Cas(&t.status, timerRunning, timerWaiting) {
time.go#L883: if !atomic.Cas(&t.status, timerRunning, timerNoStatus) {
time.go#L940: if atomic.Cas(&t.status, s, timerMoving) {
time.go#L946: if !atomic.Cas(&t.status, timerMoving, timerWaiting) {
time.go#L955: if atomic.Cas(&t.status, s, timerRemoving) {
time.go#L958: if !atomic.Cas(&t.status, timerRemoving, timerRemoved) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |