Use new method to set affinity.

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

View File

@@ -39,14 +39,3 @@ void Cpu::init()
initCommon();
}
void Cpu::setAffinity(int id, uint64_t mask)
{
if (id == -1) {
SetProcessAffinityMask(GetCurrentProcess(), mask);
}
else {
SetThreadAffinityMask(GetCurrentThread(), mask);
}
}