var runtime.ncpu
9 uses
runtime (current package)
debug.go#L43: return int(ncpu)
heapdump.go#L535: dumpint(uint64(ncpu))
lock_sema.go#L55: if ncpu > 1 {
mgc.go#L1363: if work.stwprocs > ncpu {
mgc.go#L1366: work.stwprocs = ncpu
os_darwin.go#L129: ncpu = getncpu()
proc.go#L654: procs := ncpu
proc.go#L6137: if i >= active_spin || ncpu <= 1 || gomaxprocs <= int32(sched.npidle+sched.nmspinning)+1 {
runtime2.go#L1057: ncpu int32
![]() |
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. |