mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-24 12:39:28 +00:00
Merge pull request #1146 from SChernykh/dev
Fixed race condition in RandomX thread init
This commit is contained in:
commit
af52e454e7
1 changed files with 2 additions and 0 deletions
|
@ -90,6 +90,8 @@ void xmrig::CpuWorker<N>::allocateRandomX_VM()
|
||||||
if (Nonce::sequence(Nonce::CPU) == 0) {
|
if (Nonce::sequence(Nonce::CPU) == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dataset = Rx::dataset(m_job.currentJob(), m_node);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_vm) {
|
if (!m_vm) {
|
||||||
|
|
Loading…
Reference in a new issue