Use new method to set affinity.

This commit is contained in:
XMRig 2018-04-13 09:27:37 +07:00
parent c1800094d0
commit 9ce9147dad
16 changed files with 82 additions and 82 deletions

View file

@ -130,7 +130,7 @@ void Workers::start(xmrig::Controller *controller)
uv_timer_start(&m_timer, Workers::onTick, 500, 500);
for (xmrig::IThread *thread : threads) {
Handle *handle = new Handle(thread, threads.size(), totalWays, controller->config()->affinity());
Handle *handle = new Handle(thread, threads.size(), totalWays);
m_workers.push_back(handle);
handle->start(Workers::onReady);
}