#1385 "max-threads-hint" option now also limit RandomX dataset initialization threads.

This commit is contained in:
XMRig
2019-12-07 22:18:06 +07:00
parent 5d6abe4ae6
commit 0c926c5f57
8 changed files with 21 additions and 14 deletions

View File

@@ -37,6 +37,7 @@ namespace xmrig
class Algorithm;
class CpuConfig;
class IRxListener;
class Job;
class RxConfig;
@@ -46,7 +47,7 @@ class RxDataset;
class Rx
{
public:
static bool init(const Job &job, const RxConfig &config, bool hugePages, bool oneGbPages, int priority);
static bool init(const Job &job, const RxConfig &config, const CpuConfig &cpu);
static bool isReady(const Job &job);
static RxDataset *dataset(const Job &job, uint32_t nodeId);
static std::pair<uint32_t, uint32_t> hugePages();