Lines Matching refs:cpus
234 let mut cpus: libc::c_uint = 0; in get_num_cpus() localVariable
235 let mut cpus_size = std::mem::size_of_val(&cpus); in get_num_cpus()
238 cpus = libc::sysconf(libc::_SC_NPROCESSORS_ONLN) as libc::c_uint; in get_num_cpus()
240 if cpus < 1 { in get_num_cpus()
245 &mut cpus as *mut _ as *mut _, in get_num_cpus()
250 if cpus < 1 { in get_num_cpus()
251 cpus = 1; in get_num_cpus()
254 cpus as usize in get_num_cpus()
261 let mut cpus: libc::c_uint = 0; in get_num_cpus() localVariable
262 let mut cpus_size = std::mem::size_of_val(&cpus); in get_num_cpus()
269 &mut cpus as *mut _ as *mut _, in get_num_cpus()
275 cpus = 1; in get_num_cpus()
277 cpus as usize in get_num_cpus()
284 let mut cpus: libc::c_uint = 0; in get_num_physical_cpus() localVariable
285 let mut cpus_size = std::mem::size_of_val(&cpus); in get_num_physical_cpus()
292 &mut cpus as *mut _ as *mut _, in get_num_physical_cpus()
298 cpus = 1; in get_num_physical_cpus()
300 cpus as usize in get_num_physical_cpus()
309 let mut cpus: i32 = 0; in get_num_physical_cpus() localVariable
310 let mut cpus_size = std::mem::size_of_val(&cpus); in get_num_physical_cpus()
317 &mut cpus as *mut _ as *mut _, in get_num_physical_cpus()
324 cpus as usize in get_num_physical_cpus()
344 let cpus = unsafe { libc::sysconf(CONF_NAME) }; in get_num_cpus() localVariable
345 if cpus < 1 { in get_num_cpus()
348 cpus as usize in get_num_cpus()