mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-19 09:15:10 +00:00
Uniform signature for hugePages method.
This commit is contained in:
parent
3bd28ea7ac
commit
b41fd120d2
2 changed files with 3 additions and 3 deletions
|
@ -250,9 +250,9 @@ xmrig::RxDataset *xmrig::Rx::dataset(const Job &job, uint32_t nodeId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::pair<size_t, size_t> xmrig::Rx::hugePages()
|
std::pair<unsigned, unsigned> xmrig::Rx::hugePages()
|
||||||
{
|
{
|
||||||
std::pair<size_t, size_t> pages(0, 0);
|
std::pair<unsigned, unsigned> pages(0, 0);
|
||||||
std::lock_guard<std::mutex> lock(d_ptr->mutex);
|
std::lock_guard<std::mutex> lock(d_ptr->mutex);
|
||||||
|
|
||||||
for (auto const &item : d_ptr->datasets) {
|
for (auto const &item : d_ptr->datasets) {
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Rx
|
||||||
public:
|
public:
|
||||||
static bool isReady(const Job &job);
|
static bool isReady(const Job &job);
|
||||||
static RxDataset *dataset(const Job &job, uint32_t nodeId);
|
static RxDataset *dataset(const Job &job, uint32_t nodeId);
|
||||||
static std::pair<size_t, size_t> hugePages();
|
static std::pair<unsigned, unsigned> hugePages();
|
||||||
static void destroy();
|
static void destroy();
|
||||||
static void init();
|
static void init();
|
||||||
static void init(const Job &job, int initThreads, bool hugePages, bool numa);
|
static void init(const Job &job, int initThreads, bool hugePages, bool numa);
|
||||||
|
|
Loading…
Reference in a new issue