Added class MultiWorker and remove classes SingleWorker and DoubleWorker.

This commit is contained in:
XMRig 2018-04-14 22:14:57 +07:00
parent c81401ab2d
commit 4b71b7aa29
13 changed files with 173 additions and 345 deletions

View file

@ -54,10 +54,10 @@ public:
protected:
void storeStats();
cryptonight_ctx *m_ctx;
size_t m_id;
size_t m_totalThreads;
size_t m_totalWays;
const size_t m_id;
const size_t m_totalWays;
const uint32_t m_offset;
cryptonight_ctx *m_ctxLegacy;
std::atomic<uint64_t> m_hashCount;
std::atomic<uint64_t> m_timestamp;
uint64_t m_count;