]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/engine/sysinfo.h
1 /* Copyright 2019 Rene Rivera
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
14 Provides information about the system, hardware and software, we are
24 Returns the number of physical CPU cores if available. Otherwise
27 Currently implemented for: OS_MACOSX.
29 unsigned int cpu_core_count();
32 Returns the number of logical CPU threads is available. Otherwise
33 returns `spu_core_count()`.
35 Currently implemented for: OS_MACOSX.
37 unsigned int cpu_thread_count();
41 unsigned int cpu_core_count_
= 0;
42 unsigned int cpu_thread_count_
= 0;