Set thread affinity of the specific thread, not the current thread.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user