Misc threading fixes and flags to ignore priorities/affinities.

This commit is contained in:
Ben Vanik
2015-05-21 22:33:29 -07:00
parent 37f1953466
commit 4d41840728
3 changed files with 16 additions and 5 deletions

View File

@@ -260,11 +260,13 @@ SHIM_CALL KeSetBasePriorityThread_shim(PPCContext* ppc_state,
XELOGD("KeSetBasePriorityThread - Interpreting thread ptr as handle!");
} else {
thread = (XThread*)XObject::GetObject(state, SHIM_MEM_ADDR(thread_ptr));
thread->Retain();
}
if (thread) {
prev_priority = thread->QueryPriority();
thread->SetPriority(increment);
thread->Release();
}
SHIM_SET_RETURN_32(prev_priority);