Searched refs:sysctl_value (Results 1 – 1 of 1) sorted by relevance
119 uint32_t sysctl_value; in GetCurCpus() local120 size_t length = sizeof(sysctl_value); in GetCurCpus()121 int error = sysctlbyname("hw.ncpu", &sysctl_value, &length, NULL, 0); in GetCurCpus()122 cur_cpus = !error ? static_cast<int>(sysctl_value) : 1; in GetCurCpus()