1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

runtime: document all functions (#7612)

This commit is contained in:
Larpon
2020-12-27 19:14:43 +01:00
committed by GitHub
parent d87011ab78
commit 9e6575eaab
4 changed files with 24 additions and 9 deletions

View File

@ -1,5 +1,6 @@
module runtime
// nr_cpus returns the number of virtual CPU cores found on the system.
pub fn nr_cpus() int {
$if linux {
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
@ -11,4 +12,4 @@ pub fn nr_cpus() int {
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
}
return 1
}
}