#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 3a75f39935
commit e9e747f0d1
No known key found for this signature in database
GPG key ID: 446A53638BE94409
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();