mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-15 20:08:17 +00:00
[idd] implemented core shared memory functionallity and LGMP setup
This commit is contained in:
31
idd/LGIdd/CPlatformInfo.h
Normal file
31
idd/LGIdd/CPlatformInfo.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class CPlatformInfo
|
||||
{
|
||||
private:
|
||||
static size_t m_pageSize;
|
||||
static std::string m_productName;
|
||||
static uint8_t m_uuid[16];
|
||||
|
||||
static std::string m_model;
|
||||
static int m_cores;
|
||||
static int m_procs;
|
||||
static int m_sockets;
|
||||
|
||||
static void InitUUID();
|
||||
static void InitCPUInfo();
|
||||
|
||||
public:
|
||||
static void Init();
|
||||
|
||||
inline static size_t GetPageSize() { return m_pageSize; }
|
||||
inline static const std::string& GetProductName() { return m_productName; }
|
||||
inline static const uint8_t* GetUUID() { return m_uuid; }
|
||||
|
||||
inline static const std::string & GetCPUModel() { return m_model; }
|
||||
inline static int GetCoreCount() { return m_cores; }
|
||||
inline static int GetProcCount() { return m_procs; }
|
||||
inline static int GetSocketCount() { return m_sockets; }
|
||||
};
|
Reference in New Issue
Block a user