CPU expandability and MDs

This commit is contained in:
Ben
2018-12-07 18:59:31 +00:00
parent 0ccefcbfab
commit b786ded5b7
8 changed files with 118 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#include <atomic>
#include <vector>
#include <thread>
#include <mutex>
@@ -9,18 +9,21 @@ public:
CPU();
std::mutex CPU_Mutex;
int CPU_PREVIOUS_IDLE;
int CPU_PREVIOUS_WORK;
int CPU_PREVIOUS_TOTAL;
int CPU_IDLE;
int CPU_WORK;
int CPU_TOTAL;
int UPDATE_INTERVAL; // s
std::vector<std::vector<int>> CPU_CORES_WORK_AND_TOTAL;
void START_CPU_POLLING();
static void CPU_POLL(CPU* cpu);
void END_CPU_POLLING();
double CPU_PERCENT();
std::vector<double> CPU_CORE_PERCENT();
virtual ~CPU();
private: