Added information about started threads.

This commit is contained in:
XMRig 2018-04-15 14:49:39 +07:00
parent 6b4f2d0a91
commit e2d85d78a7
4 changed files with 65 additions and 5 deletions

View file

@ -30,6 +30,7 @@
#include "interfaces/IWorker.h"
#include "Mem.h"
struct cryptonight_ctx;
@ -46,6 +47,7 @@ class Worker : public IWorker
public:
Worker(Handle *handle);
inline const MemInfo &memory() const { return m_memory; }
inline size_t id() const override { return m_id; }
inline uint64_t hashCount() const override { return m_hashCount.load(std::memory_order_relaxed); }
inline uint64_t timestamp() const override { return m_timestamp.load(std::memory_order_relaxed); }
@ -56,6 +58,7 @@ protected:
const size_t m_id;
const size_t m_totalWays;
const uint32_t m_offset;
MemInfo m_memory;
std::atomic<uint64_t> m_hashCount;
std::atomic<uint64_t> m_timestamp;
uint64_t m_count;