mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-06 23:52:38 -05:00
Fixed race condition in RandomX thread init
Thread could deadlock if it started before dataset struct was allocated.
This commit is contained in:
@@ -90,6 +90,8 @@ void xmrig::CpuWorker<N>::allocateRandomX_VM()
|
||||
if (Nonce::sequence(Nonce::CPU) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
dataset = Rx::dataset(m_job.currentJob(), m_node);
|
||||
}
|
||||
|
||||
if (!m_vm) {
|
||||
|
||||
Reference in New Issue
Block a user