From: Ian Lance Taylor Date: Fri, 10 Jul 2015 13:20:51 +0000 (-0700) Subject: runtime: clarify that NumCPU returns only available CPUs X-Git-Tag: go1.5beta2~104 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2de67e9974b2d4be23e53d3aee1c969840e6baa2;p=gostls13.git runtime: clarify that NumCPU returns only available CPUs Update #11609. Change-Id: Ie363facf13f5e62f1af4a8bdc42a18fb36e16ebf Reviewed-on: https://go-review.googlesource.com/12022 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/runtime/debug.go b/src/runtime/debug.go index 9aec3b03e0..b7e7971104 100644 --- a/src/runtime/debug.go +++ b/src/runtime/debug.go @@ -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) }