func runtime/internal/atomic.Load
108 uses
runtime/internal/atomic (current package)
atomic_amd64.go#L16: func Load(ptr *uint32) uint32 {
runtime
cgocall.go#L245: if gp.m.needextram || atomic.Load(&extraMWaiters) > 0 {
chan.go#L481: if atomic.Load(&c.closed) == 0 {
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) {
mgc.go#L243: gcWaitOnMark(atomic.Load(&work.cycles))
mgc.go#L1153: n := atomic.Load(&work.cycles)
mgc.go#L1168: for atomic.Load(&work.cycles) == n+1 && sweepone() != ^uintptr(0) {
mgc.go#L1184: for atomic.Load(&work.cycles) == n+1 && atomic.Load(&mheap_.sweepers) != 0 {
mgc.go#L1192: cycle := atomic.Load(&work.cycles)
mgc.go#L1205: nMarks := atomic.Load(&work.cycles)
mgc.go#L1352: if fg := atomic.Load(&p.mcache.flushGen); fg != mheap_.sweepgen {
mgcmark.go#L175: cnt := uintptr(atomic.Load(&fb.cnt))
mgcmark.go#L509: if atomic.Load(&gcBlackenEnabled) == 0 {
mgcmark.go#L597: if atomic.Load(&gcBlackenEnabled) == 0 {
mgcmark.go#L1009: for !(gp.preempt && (preemptible || atomic.Load(&sched.gcwaiting) != 0)) {
mgcmark.go#L1023: for !(gp.preempt && (preemptible || atomic.Load(&sched.gcwaiting) != 0)) {
mgcsweep.go#L64: return sweepClass(atomic.Load((*uint32)(s)))
mgcsweep.go#L195: if atomic.Load(&mheap_.sweepdone) != 0 {
mgcsweep.go#L244: if atomic.Xadd(&mheap_.sweepers, -1) == 0 && atomic.Load(&mheap_.sweepdone) != 0 {
mgcsweep.go#L296: spangen := atomic.Load(&s.sweepgen)
mgcsweep.go#L307: spangen := atomic.Load(&s.sweepgen)
mheap.go#L846: if atomic.Load(&s.sweepgen) == sg-2 && atomic.Cas(&s.sweepgen, sg-2, sg-1) {
mstats.go#L873: gen := atomic.Load(&m.gen) % 3
mstats.go#L938: currGen := atomic.Load(&m.gen)
mstats.go#L961: for atomic.Load(&p.statsSeq)%2 != 0 {
netpoll.go#L119: if atomic.Load(&netpollInited) == 0 {
netpoll.go#L131: return atomic.Load(&netpollInited) != 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#L234: if atomic.Load(&runningPanicDefers) != 0 {
proc.go#L237: if atomic.Load(&runningPanicDefers) == 0 {
proc.go#L243: if atomic.Load(&panicking) != 0 {
proc.go#L830: return atomic.Load(&gp.atomicstatus)
proc.go#L1136: if atomic.Load(&freezing) != 0 {
proc.go#L1436: if atomic.Load(&m.signalPending) != 0 {
proc.go#L1571: for atomic.Load(&sched.sysmonStarting) != 0 {
proc.go#L1575: if atomic.Load(&newmHandoff.haveTemplateThread) != 0 {
proc.go#L1650: if atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L2378: if atomic.Load(&sched.nmspinning)+atomic.Load(&sched.npidle) == 0 && atomic.Cas(&sched.nmspinning, 0, 1) { // TODO: fast atomic
proc.go#L2426: if atomic.Load(&sched.npidle) == 0 {
proc.go#L2430: if atomic.Load(&sched.nmspinning) != 0 || !atomic.Cas(&sched.nmspinning, 0, 1) {
proc.go#L2604: if netpollinited() && atomic.Load(&netpollWaiters) > 0 && atomic.Load64(&sched.lastpoll) != 0 {
proc.go#L2622: if !_g_.m.spinning && 2*atomic.Load(&sched.nmspinning) >= procs-atomic.Load(&sched.npidle) {
proc.go#L2822: if atomic.Load(&gcBlackenEnabled) != 0 && gcMarkWorkAvailable(nil) {
proc.go#L2867: if netpollinited() && (atomic.Load(&netpollWaiters) > 0 || pollUntil != 0) && atomic.Xchg64(&sched.lastpoll, 0) != 0 {
proc.go#L2932: if netpollinited() && atomic.Load(&netpollWaiters) > 0 && sched.lastpoll != 0 {
proc.go#L3029: npidle := int(atomic.Load(&sched.npidle))
proc.go#L3212: if pp != getg().m.p.ptr() || int(atomic.Load(&pp.deletedTimers)) <= int(atomic.Load(&pp.numTimers)/4) {
proc.go#L3237: if pp == getg().m.p.ptr() && int(atomic.Load(&pp.deletedTimers)) > len(pp.timers)/4 {
proc.go#L3532: if atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L3570: if atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L3797: if _p_ != nil && atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L3825: } else if atomic.Load(&sched.sysmonwait) != 0 {
proc.go#L3930: for int32(atomic.Load(&pendingPreemptSignals)) > 0 {
proc.go#L4265: if atomic.Load(&newmHandoff.haveTemplateThread) == 0 && GOOS != "plan9" {
proc.go#L4340: n := int32(atomic.Loaduintptr(&allglen)) - sched.gFree.n - int32(atomic.Load(&sched.ngsys))
proc.go#L4485: if atomic.Load(&mp.cgoCallersUse) == 0 && mp.cgoCallers != nil && mp.cgoCallers[0] != 0 {
proc.go#L5141: if debug.schedtrace <= 0 && (sched.gcwaiting != 0 || atomic.Load(&sched.npidle) == uint32(gomaxprocs)) {
proc.go#L5143: if atomic.Load(&sched.gcwaiting) != 0 || atomic.Load(&sched.npidle) == uint32(gomaxprocs) {
proc.go#L5224: if atomic.Load(&scavenge.sysmonWake) != 0 {
proc.go#L5236: if t := (gcTrigger{kind: gcTriggerTime, now: now}); t.test() && atomic.Load(&forcegc.idle) != 0 {
proc.go#L5305: if runqempty(_p_) && atomic.Load(&sched.nmspinning)+atomic.Load(&sched.npidle) > 0 && pd.syscallwhen+10*1000*1000 > now {
proc.go#L5405: h := atomic.Load(&_p_.runqhead)
proc.go#L5406: t := atomic.Load(&_p_.runqtail)
proc.go#L5607: return (atomic.Load(&p[word]) & mask) != 0
proc.go#L5650: if atomic.Load(&pp.numTimers) > 0 {
proc.go#L5658: if atomic.Load(&pp.numTimers) == 0 {
proc.go#L5714: head := atomic.Load(&_p_.runqhead)
proc.go#L5715: tail := atomic.Load(&_p_.runqtail)
proc.go#L5717: 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#L258: if atomic.Load(&handlingSig[i]) != 0 {
signal_unix.go#L973: if atomic.Load(&handlingSig[sig]) == 0 || !signalsOK {
sigqueue.go#L81: if w := atomic.Load(&sig.wanted[s/32]); w&bit == 0 {
sigqueue.go#L101: switch atomic.Load(&sig.state) {
sigqueue.go#L159: switch atomic.Load(&sig.state) {
sigqueue.go#L209: for atomic.Load(&sig.delivering) != 0 {
sigqueue.go#L216: for atomic.Load(&sig.state) != sigReceiving {
sigqueue.go#L292: i := atomic.Load(&sig.ignored[s/32])
time.go#L308: switch s := atomic.Load(&t.status); s {
time.go#L436: switch status = atomic.Load(&t.status); status {
time.go#L575: switch s := atomic.Load(&t.status); s {
time.go#L615: switch s := atomic.Load(&t.status); s {
time.go#L667: if atomic.Load(&pp.adjustTimers) == 0 {
time.go#L703: switch s := atomic.Load(&t.status); s {
time.go#L792: switch s := atomic.Load(&t.status); s {
time.go#L931: switch s := atomic.Load(&t.status); s {
time.go#L1016: if numTimers := int(atomic.Load(&pp.numTimers)); len(pp.timers) != numTimers {
 |
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. |