mirror of
https://github.com/golang/go
synced 2024-11-21 21:44:40 -07:00
runtime: move NumCPU declaration into debug.go.
R=rsc CC=golang-dev https://golang.org/cl/5574060
This commit is contained in:
parent
e3e1804ed2
commit
0ae9d812c8
@ -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
|
||||
|
||||
|
@ -68,9 +68,6 @@ func funcline_go(*Func, uintptr) (string, int)
|
||||
// mid returns the current os thread (m) id.
|
||||
func mid() uint32
|
||||
|
||||
// NumCPU returns the number of logical CPUs on the local machine.
|
||||
func NumCPU() int
|
||||
|
||||
// Semacquire waits until *s > 0 and then atomically decrements it.
|
||||
// It is intended as a simple sleep primitive for use by the synchronization
|
||||
// library and should not be used directly.
|
||||
|
Loading…
Reference in New Issue
Block a user