v/vlib/runtime/runtime.v

17 lines
168 B
V
Raw Normal View History

2019-10-11 05:36:46 +02:00
module runtime
2019-10-12 02:49:36 +02:00
/*
$if linux {
#include <sys/sysinfo.h>
fn C.get_nprocs() int
}
2019-10-12 02:49:36 +02:00
*/
pub fn nr_cpus() int {
2019-10-12 02:49:36 +02:00
//$if linux {
//return C.get_nprocs()
//}
return 0
}