Quick fix, temporary use old style affinity.

This commit is contained in:
XMRig 2018-04-03 17:06:03 +07:00
parent dd6bc339bf
commit d4123b8fa6
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);