aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/debug.go
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2012-01-25 14:13:11 +1100
committerDavid Symonds <dsymonds@golang.org>2012-01-25 14:13:11 +1100
commit0ae9d812c850d6acb4f133773c024b3f49d3f034 (patch)
tree1e77df0c373195d8c06c06cce8a2a462c6d8a5f1 /src/pkg/runtime/debug.go
parente3e1804ed2af1163335369300cfc562c35ffa4c9 (diff)
downloadgo-0ae9d812c850d6acb4f133773c024b3f49d3f034.tar.xz
runtime: move NumCPU declaration into debug.go.
R=rsc CC=golang-dev https://golang.org/cl/5574060
Diffstat (limited to 'src/pkg/runtime/debug.go')
-rw-r--r--src/pkg/runtime/debug.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/runtime/debug.go b/src/pkg/runtime/debug.go
index c2b90566a9..4f09146fac 100644
--- a/src/pkg/runtime/debug.go
+++ b/src/pkg/runtime/debug.go
@@ -23,6 +23,9 @@ func UnlockOSThread()
// This call will go away when the scheduler improves.
func GOMAXPROCS(n int) int
+// NumCPU returns the number of logical CPUs on the local machine.
+func NumCPU() int
+
// Cgocalls returns the number of cgo calls made by the current process.
func Cgocalls() int64