On 17/08/2015 19:11, Andrey Semashev wrote:
On 17.08.2015 20:01, Glen Fernandes wrote:
Andrey wrote:
My idea is a system capabilities library (Boost.SystemCaps) which would offer a generic interface for querying the current system properties such as:
- Number of CPU cores/threads. - Current CPU core capabilities (vendor string, instruction set extensions, cache properties, etc.). Probably, this would need to support heterogenous systems as well. - System RAM size. - OS version string.
This sounds like a good idea. It would almost be runtime-analogous to Boost.Config (Boost.RuntimeConfig or Boost.SystemConfig).
The name is not final, just something I refer the idea to. I'm in favor of shorter names though, like Boost.SysInfo, perhaps.
What about Boost.SysCtl to mimic the sysctl() function ?