2011-11-28 06:45:49 +01:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package runtime
|
|
|
|
#include "runtime.h"
|
|
|
|
|
2012-10-23 06:31:11 +02:00
|
|
|
func GOMAXPROCS(n int) (ret int) {
|
2011-11-28 06:45:49 +01:00
|
|
|
ret = runtime_gomaxprocsfunc(n);
|
|
|
|
}
|
2012-01-25 21:56:26 +01:00
|
|
|
|
2012-10-23 06:31:11 +02:00
|
|
|
func NumCPU() (ret int) {
|
2012-01-25 21:56:26 +01:00
|
|
|
ret = runtime_ncpu;
|
|
|
|
}
|