sigar/go_bindings/gotoc/thread.go

34 lines
314 B
Go
Raw Normal View History

2016-01-04 18:23:11 +08:00
package gotoc
import (
)
/*
#include "../../../../../Include/sigar.h"
*/
import "C"
func Threads(id int64)C.sigar_thread_cpu_t{
var threadCpu C.sigar_thread_cpu_t
var sigar *C.sigar_t=GetSigarHandle()
C.sigar_thread_cpu_get(sigar , C.sigar_uint64_t(id) ,&threadCpu)
return threadCpu
}