mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-14 10:32:38 -05:00
Quick fix, temporary use old style affinity.
This commit is contained in:
@@ -42,9 +42,9 @@ Worker::Worker(Handle *handle) :
|
||||
m_sequence(0),
|
||||
m_thread(static_cast<xmrig::CpuThread *>(handle->config()))
|
||||
{
|
||||
// if (Cpu::threads() > 1 && handle->affinity() != -1L) {
|
||||
// Cpu::setAffinity(m_id, handle->affinity());
|
||||
// }
|
||||
if (Cpu::threads() > 1 && handle->affinity() != -1L) {
|
||||
Cpu::setAffinity(m_id, handle->affinity());
|
||||
}
|
||||
|
||||
Platform::setThreadPriority(handle->config()->priority());
|
||||
m_ctx = Mem::create(m_id);
|
||||
|
||||
Reference in New Issue
Block a user