Set thread affinity of the specific thread, not the current thread.

This commit is contained in:
gibbed 2015-05-14 17:00:52 -05:00
parent 283f5269d5
commit 61f4095851
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ void XThread::SetAffinity(uint32_t affinity) {
if (system_info.dwNumberOfProcessors < 6) {
XELOGW("Too few processors - scheduling will be wonky");
}
SetThreadAffinityMask(::GetCurrentThread(), affinity);
SetThreadAffinityMask(reinterpret_cast<HANDLE>(thread_handle_), affinity);
}
X_STATUS XThread::Resume(uint32_t* out_suspend_count) {