Fixed race condition in RandomX thread init
Thread could deadlock if it started before dataset struct was allocated.
This commit is contained in:
parent
0a58781b0c
commit
d5e7ab4985
@ -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 New Issue
Block a user