Added alternative object format for CPU threads.

This commit is contained in:
XMRig 2019-08-07 18:12:39 +07:00
parent 96fd7545d1
commit 42dc914eec
5 changed files with 106 additions and 46 deletions

View file

@ -53,6 +53,13 @@ public:
rapidjson::Value toJSON(rapidjson::Document &doc) const;
private:
enum Format {
ArrayFormat,
ObjectFormat
};
Format m_format = ArrayFormat;
int64_t m_affinity = -1;
std::vector<CpuThread> m_data;
};