Always stop mining threads in RandomX dataset change upcoming.

This commit is contained in:
XMRig 2019-08-02 16:44:55 +07:00
parent bdaf28adf8
commit f7ea4b6dbd
5 changed files with 35 additions and 14 deletions

View file

@ -54,7 +54,7 @@ namespace xmrig {
class RxPrivate;
static const char *tag = BLUE_BG(WHITE_BOLD_S " rx ") " ";
static const char *tag = BLUE_BG(WHITE_BOLD_S " rx ") " ";
static RxPrivate *d_ptr = nullptr;
@ -231,6 +231,14 @@ private:
} // namespace xmrig
bool xmrig::Rx::isReady(const Job &job)
{
std::lock_guard<std::mutex> lock(d_ptr->mutex);
return d_ptr->isReady(job);
}
xmrig::RxDataset *xmrig::Rx::dataset(const Job &job, uint32_t nodeId)
{
std::lock_guard<std::mutex> lock(d_ptr->mutex);