Update the value when mutexes timeout.

This commit is contained in:
Unknown W. Brackets
2012-11-20 02:20:14 -08:00
parent aad7e48a1a
commit 4d71e32193
5 changed files with 55 additions and 17 deletions
+14
View File
@@ -393,6 +393,20 @@ u32 __KernelGetWaitValue(SceUID threadID, u32 &error)
}
}
u32 __KernelGetWaitTimeoutPtr(SceUID threadID, u32 &error)
{
Thread *t = kernelObjects.Get<Thread>(threadID, error);
if (t)
{
return t->waitInfo.timeoutPtr;
}
else
{
ERROR_LOG(HLE, "__KernelGetWaitValue ERROR: thread %i", threadID);
return 0;
}
}
void sceKernelReferThreadStatus()
{
SceUID threadID = PARAM(0);