mirror of
https://github.com/xmrig/xmrig.git
synced 2026-02-01 09:43:03 -05:00
Removed CPU specific code from Worker class.
This commit is contained in:
@@ -34,9 +34,13 @@
|
||||
#include "backend/common/Worker.h"
|
||||
|
||||
|
||||
class ThreadHandle;
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
class CpuThreadLegacy;
|
||||
class RxVm;
|
||||
|
||||
|
||||
@@ -47,6 +51,8 @@ public:
|
||||
CpuWorker(ThreadHandle *handle);
|
||||
~CpuWorker() override;
|
||||
|
||||
inline const MemInfo &memory() const { return m_memory; }
|
||||
|
||||
protected:
|
||||
bool selfTest() override;
|
||||
void start() override;
|
||||
@@ -60,9 +66,10 @@ private:
|
||||
bool verify2(const Algorithm &algorithm, const uint8_t *referenceValue);
|
||||
void consumeJob();
|
||||
|
||||
CpuThreadLegacy *m_thread;
|
||||
cryptonight_ctx *m_ctx[N];
|
||||
MemInfo m_memory;
|
||||
uint8_t m_hash[N * 32];
|
||||
|
||||
WorkerJob<N> m_job;
|
||||
|
||||
# ifdef XMRIG_ALGO_RANDOMX
|
||||
|
||||
Reference in New Issue
Block a user