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"
|
|
|
|
|
|
|
|
func GOMAXPROCS(n int32) (ret int32) {
|
|
|
|
ret = runtime_gomaxprocsfunc(n);
|
|
|
|
}
|
2012-01-25 21:56:26 +01:00
|
|
|
|
|
|
|
func NumCPU() (ret int32) {
|
|
|
|
ret = runtime_ncpu;
|
|
|
|
}
|