Quick fix, temporary use old style affinity.

This commit is contained in:
XMRig
2018-04-03 17:06:03 +07:00
parent 8e5f3a5b77
commit 20c1a6ee8e
4 changed files with 9 additions and 6 deletions

View File

@@ -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);