func runtime/internal/atomic.Load
107 uses
runtime/internal/atomic (current package)
atomic_amd64.go#L16: func Load(ptr *uint32) uint32 {
types.go#L137: return Load(&u.value)
runtime
cgocall.go#L260: if gp.m.needextram || atomic.Load(&extraMWaiters) > 0 {
chan.go#L482: if atomic.Load(&c.closed) == 0 {
debuglog.go#L66: if atomic.Load(&l1.owned) == 0 && atomic.Cas(&l1.owned, 0, 1) {
lock_futex.go#L157: for atomic.Load(key32(&n.key)) == 0 {
lock_futex.go#L180: for atomic.Load(key32(&n.key)) == 0 {
lock_futex.go#L191: if atomic.Load(key32(&n.key)) != 0 {
lock_futex.go#L206: if atomic.Load(key32(&n.key)) != 0 {
lock_futex.go#L215: return atomic.Load(key32(&n.key)) != 0
mem_linux.go#L109: advise = atomic.Load(&adviseUnused)
mgc.go#L436: n := atomic.Load(&work.cycles)
mgc.go#L451: for atomic.Load(&work.cycles) == n+1 && sweepone() != ^uintptr(0) {
mgc.go#L467: for atomic.Load(&work.cycles) == n+1 && !isSweepDone() {
mgc.go#L475: cycle := atomic.Load(&work.cycles)
mgc.go#L488: nMarks := atomic.Load(&work.cycles)
mgc.go#L635: if fg := atomic.Load(&p.mcache.flushGen); fg != mheap_.sweepgen {
mgcmark.go#L182: cnt := uintptr(atomic.Load(&fb.cnt))
mgcmark.go#L529: if atomic.Load(&gcBlackenEnabled) == 0 {
mgcmark.go#L615: if atomic.Load(&gcBlackenEnabled) == 0 {
mgcmark.go#L1042: for !(gp.preempt && (preemptible || atomic.Load(&sched.gcwaiting) != 0)) {
mgcmark.go#L1056: for !(gp.preempt && (preemptible || atomic.Load(&sched.gcwaiting) != 0)) {
mgcpacer.go#L1265: gcWaitOnMark(atomic.Load(&work.cycles))
mgcsweep.go#L68: return sweepClass(atomic.Load((*uint32)(s)))
mgcsweep.go#L320: if atomic.Load(&s.sweepgen) != l.sweepGen-2 {
mgcsweep.go#L455: spangen := atomic.Load(&s.sweepgen)
mstats.go#L813: gen := atomic.Load(&m.gen) % 3
mstats.go#L884: currGen := atomic.Load(&m.gen)
mstats.go#L907: for atomic.Load(&p.statsSeq)%2 != 0 {
netpoll.go#L191: if atomic.Load(&netpollInited) == 0 {
netpoll.go#L203: return atomic.Load(&netpollInited) != 0
os_linux.go#L587: if atomic.Load(&mp.profileTimerValid) != 0 {
os_linux.go#L613: if atomic.Load(&mp.profileTimerValid) != 0 {
preempt.go#L195: if gp.preemptStop && gp.preempt && gp.stackguard0 == stackPreempt && asyncM == gp.m && atomic.Load(&asyncM.preemptGen) == asyncGen {
preempt.go#L211: asyncGen2 := atomic.Load(&asyncM2.preemptGen)
print.go#L43: if atomic.Load(&panicking) == 0 {
proc.go#L259: if atomic.Load(&runningPanicDefers) != 0 {
proc.go#L262: if atomic.Load(&runningPanicDefers) == 0 {
proc.go#L268: if atomic.Load(&panicking) != 0 {
proc.go#L899: return atomic.Load(&gp.atomicstatus)
proc.go#L1237: if atomic.Load(&freezing) != 0 {
proc.go#L1543: if atomic.Load(&m.signalPending) != 0 {
proc.go#L2349: if atomic.Load(&sched.nmspinning)+atomic.Load(&sched.npidle) == 0 && atomic.Cas(&sched.nmspinning, 0, 1) { // TODO: fast atomic
proc.go#L2397: if atomic.Load(&sched.npidle) == 0 {
proc.go#L2401: if atomic.Load(&sched.nmspinning) != 0 || !atomic.Cas(&sched.nmspinning, 0, 1) {
proc.go#L2575: if netpollinited() && atomic.Load(&netpollWaiters) > 0 && atomic.Load64(&sched.lastpoll) != 0 {
proc.go#L2593: if _g_.m.spinning || 2*atomic.Load(&sched.nmspinning) < procs-atomic.Load(&sched.npidle) {
proc.go#L2745: if netpollinited() && (atomic.Load(&netpollWaiters) > 0 || pollUntil != 0) && atomic.Xchg64(&sched.lastpoll, 0) != 0 {
proc.go#L2820: if netpollinited() && atomic.Load(&netpollWaiters) > 0 && sched.lastpoll != 0 {
proc.go#L2950: if atomic.Load(&gcBlackenEnabled) == 0 {
proc.go#L3089: npidle := int(atomic.Load(&sched.npidle))
proc.go#L3274: if pp != getg().m.p.ptr() || int(atomic.Load(&pp.deletedTimers)) <= int(atomic.Load(&pp.numTimers)/4) {
proc.go#L3299: if pp == getg().m.p.ptr() && int(atomic.Load(&pp.deletedTimers)) > len(pp.timers)/4 {
proc.go#L3619: if atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L3657: if atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L3884: if _p_ != nil && atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L3920: } else if atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L4020: for int32(atomic.Load(&pendingPreemptSignals)) > 0 {
proc.go#L4335: if atomic.Load(&newmHandoff.haveTemplateThread) == 0 && GOOS != "plan9" {
proc.go#L4410: n := int32(atomic.Loaduintptr(&allglen)) - sched.gFree.n - int32(atomic.Load(&sched.ngsys))
proc.go#L4493: if atomic.Load(&mp.cgoCallersUse) == 0 && mp.cgoCallers != nil && mp.cgoCallers[0] != 0 {
proc.go#L5084: if debug.schedtrace <= 0 && (sched.gcwaiting != 0 || atomic.Load(&sched.npidle) == uint32(gomaxprocs)) {
proc.go#L5086: if atomic.Load(&sched.gcwaiting) != 0 || atomic.Load(&sched.npidle) == uint32(gomaxprocs) {
proc.go#L5165: if atomic.Load(&scavenge.sysmonWake) != 0 {
proc.go#L5177: if t := (gcTrigger{kind: gcTriggerTime, now: now}); t.test() && atomic.Load(&forcegc.idle) != 0 {
proc.go#L5246: if runqempty(_p_) && atomic.Load(&sched.nmspinning)+atomic.Load(&sched.npidle) > 0 && pd.syscallwhen+10*1000*1000 > now {
proc.go#L5346: h := atomic.Load(&_p_.runqhead)
proc.go#L5347: t := atomic.Load(&_p_.runqtail)
proc.go#L5547: return (atomic.Load(&p[word]) & mask) != 0
proc.go#L5590: if atomic.Load(&pp.numTimers) > 0 {
proc.go#L5598: if atomic.Load(&pp.numTimers) == 0 {
proc.go#L5654: head := atomic.Load(&_p_.runqhead)
proc.go#L5655: tail := atomic.Load(&_p_.runqtail)
proc.go#L5657: if tail == atomic.Load(&_p_.runqtail) {
profbuf.go#L398: if atomic.Load(&b.eof) > 0 {
profbuf.go#L479: if atomic.Load(&b.eof) > 0 {
runtime1.go#L39: t := atomic.Load(&traceback_cache)
sema.go#L166: if atomic.Load(&root.nwait) == 0 {
sema.go#L172: if atomic.Load(&root.nwait) == 0 {
sema.go#L223: v := atomic.Load(addr)
sema.go#L525: if atomic.Load(&l.wait) == atomic.Load(&l.notify) {
sema.go#L540: atomic.Store(&l.notify, atomic.Load(&l.wait))
sema.go#L557: if atomic.Load(&l.wait) == atomic.Load(&l.notify) {
sema.go#L565: if t == atomic.Load(&l.wait) {
signal_unix.go#L267: if atomic.Load(&handlingSig[i]) != 0 {
signal_unix.go#L1057: if atomic.Load(&handlingSig[sig]) == 0 || !signalsOK {
sigqueue.go#L80: if w := atomic.Load(&sig.wanted[s/32]); w&bit == 0 {
sigqueue.go#L100: switch atomic.Load(&sig.state) {
sigqueue.go#L142: switch atomic.Load(&sig.state) {
sigqueue.go#L183: for atomic.Load(&sig.delivering) != 0 {
sigqueue.go#L190: for atomic.Load(&sig.state) != sigReceiving {
sigqueue.go#L266: i := atomic.Load(&sig.ignored[s/32])
time.go#L309: switch s := atomic.Load(&t.status); s {
time.go#L438: switch status = atomic.Load(&t.status); status {
time.go#L566: switch s := atomic.Load(&t.status); s {
time.go#L603: switch s := atomic.Load(&t.status); s {
time.go#L677: switch s := atomic.Load(&t.status); s {
time.go#L763: switch s := atomic.Load(&t.status); s {
time.go#L898: switch s := atomic.Load(&t.status); s {
time.go#L979: if numTimers := int(atomic.Load(&pp.numTimers)); len(pp.timers) != numTimers {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)