Пример #1
0
uint32_t cpu_count(bool logical) {
  long ret = -1;
  if (logical) {
    return logical_cpu_count();
  } else {
    return physical_cpu_count();
  }
  return ret;
}
Пример #2
0
int
cpu_count(int logical)
{
  long ret = -1;
  if (logical) {
    return logical_cpu_count();
  } else {
    return physical_cpu_count();
  }
  return ret;
}