mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 11:49:05 +02:00
Refactor wait verification a bit in kernel waits.
This commit is contained in:
1 parent
46b52ca552
commit
f35b164d11
8 files changed
+30
-88
No files matched your search
@@ -45,6 +45,7 @@
|
||||
#include "Core/HLE/sceKernelThread.h"
|
||||
#include "Core/HLE/sceKernelMemory.h"
|
||||
#include "Core/HLE/sceIo.h"
|
||||
#include "Core/HLE/KernelWaitHelpers.h"
|
||||
|
||||
enum {
|
||||
PSP_THREAD_ATTR_USER = 0x80000000
|
||||
@@ -1611,8 +1612,7 @@ void __KernelReturnFromModuleFunc()
|
||||
for (auto it = module->waitingThreads.begin(), end = module->waitingThreads.end(); it < end; ++it)
|
||||
{
|
||||
// Still waiting?
|
||||
SceUID waitingModuleID = __KernelGetWaitID(it->threadID, WAITTYPE_MODULE, error);
|
||||
if (waitingModuleID == leftModuleID)
|
||||
if (HLEKernel::VerifyWait(it->threadID, WAITTYPE_MODULE, leftModuleID))
|
||||
{
|
||||
if (it->statusPtr != 0)
|
||||
Memory::Write_U32(exitStatus, it->statusPtr);
|
||||
|
||||
Reference in new issue
Block a user