1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 08:23:34 -05:00

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;
};