#include <winstl/system/system_info.hpp>
This class wraps the GetSystemInfo() API function. Since the information that this function provides is constant for any particular active system for its lifetime, the function is called only once, as implemented via the get_systeminfo_() method.
Public Types | |
typedef system_info | class_type |
This type. | |
Static Public Member Functions | |
static ws_uint32_t | number_of_processors () |
Returns the number of processes on the host machine. | |
static size_t | page_size () |
Returns the page size of the host machine. | |
static size_t | allocation_granularity () |
Returns the allocation granularity of the host machine. | |
static SYSTEM_INFO const & | get_systeminfo () |
Provides a non-mutable (const) reference to the SYSTEM_INFO instance. |
typedef system_info class_type |
This type.
static ws_uint32_t number_of_processors | ( | ) | [inline, static] |
Returns the number of processes on the host machine.
static size_t page_size | ( | ) | [inline, static] |
Returns the page size of the host machine.
static size_t allocation_granularity | ( | ) | [inline, static] |
Returns the allocation granularity of the host machine.
static SYSTEM_INFO const& get_systeminfo | ( | ) | [inline, static] |
Provides a non-mutable (const) reference to the SYSTEM_INFO
instance.