Start mining threads only after RandomX dataset initialization.

This commit is contained in:
XMRig 2019-08-25 20:28:15 +07:00
parent 4a5e185973
commit 2a5110aa04
6 changed files with 165 additions and 74 deletions

View file

@ -37,19 +37,20 @@ namespace xmrig
class Algorithm;
class RxDataset;
class IRxListener;
class Job;
class RxDataset;
class Rx
{
public:
static bool init(const Job &job, int initThreads, bool hugePages, bool numa, IRxListener *listener);
static bool isReady(const Job &job);
static RxDataset *dataset(const Job &job, uint32_t nodeId);
static std::pair<unsigned, unsigned> hugePages();
static void destroy();
static void init();
static void init(const Job &job, int initThreads, bool hugePages, bool numa);
};