From 61f4095851ac093cd769a35f5210860bdbbcb143 Mon Sep 17 00:00:00 2001 From: gibbed Date: Thu, 14 May 2015 17:00:52 -0500 Subject: [PATCH] Set thread affinity of the specific thread, not the current thread. --- src/xenia/kernel/objects/xthread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/objects/xthread.cc b/src/xenia/kernel/objects/xthread.cc index cfb224402..cd0e431a6 100644 --- a/src/xenia/kernel/objects/xthread.cc +++ b/src/xenia/kernel/objects/xthread.cc @@ -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(thread_handle_), affinity); } X_STATUS XThread::Resume(uint32_t* out_suspend_count) {