From 079123b5c4c25a453ba4d3c6ffa1b5f9f39c5dad Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周六, 21 3月 2020 20:57:47 +0800 Subject: [PATCH] update docs --- src/library/os/cpu_info.hpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/library/os/cpu_info.hpp b/src/library/os/cpu_info.hpp index e0ec59f..a35de10 100644 --- a/src/library/os/cpu_info.hpp +++ b/src/library/os/cpu_info.hpp @@ -18,7 +18,8 @@ class CpuInfo { private: bool is_hypervisor_set() const; - + const std::string m_vendor; + const std::string m_brand; public: CpuInfo(); virtual ~CpuInfo(); @@ -28,9 +29,9 @@ */ bool cpu_virtual() const; uint32_t model() const; - std::string vendor() const; - // std::string brand() const; - VIRTUALIZATION_DETAIL getVirtualizationDetail() const; + const std::string& vendor() const { return m_vendor; } + const std::string& brand() const { return m_brand; } + VIRTUALIZATION_DETAIL virtualization_details() const; }; } // namespace os -- Gitblit v1.9.1