Commit 2de67e99 authored by Ian Lance Taylor's avatar Ian Lance Taylor

runtime: clarify that NumCPU returns only available CPUs

Update #11609.

Change-Id: Ie363facf13f5e62f1af4a8bdc42a18fb36e16ebf
Reviewed-on: https://go-review.googlesource.com/12022Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 91ba0abe
......@@ -31,7 +31,7 @@ func GOMAXPROCS(n int) int {
return ret
}
// NumCPU returns the number of logical CPUs on the local machine.
// NumCPU returns the number of logical CPUs usable by the current process.
func NumCPU() int {
return int(ncpu)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment