Set thread affinity of the specific thread, not the current thread.
This commit is contained in:
parent
283f5269d5
commit
61f4095851
|
@ -484,7 +484,7 @@ void XThread::SetAffinity(uint32_t affinity) {
|
||||||
if (system_info.dwNumberOfProcessors < 6) {
|
if (system_info.dwNumberOfProcessors < 6) {
|
||||||
XELOGW("Too few processors - scheduling will be wonky");
|
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) {
|
X_STATUS XThread::Resume(uint32_t* out_suspend_count) {
|
||||||
|
|
Loading…
Reference in New Issue