Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
0ae9d812
Commit
0ae9d812
authored
Jan 25, 2012
by
David Symonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: move NumCPU declaration into debug.go.
R=rsc CC=golang-dev
https://golang.org/cl/5574060
parent
e3e1804e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
debug.go
src/pkg/runtime/debug.go
+3
-0
extern.go
src/pkg/runtime/extern.go
+0
-3
No files found.
src/pkg/runtime/debug.go
View file @
0ae9d812
...
...
@@ -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
...
...
src/pkg/runtime/extern.go
View file @
0ae9d812
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment