all repos — mgba @ 2ae4030c19f0b15d7e68d58a7a07ac7260d681eb

mGBA Game Boy Advance Emulator

PSP2: Fix ConditionWaitTimed
Jeffrey Pfau jeffrey@endrift.com
Sun, 05 Jul 2015 18:19:26 -0700
commit

2ae4030c19f0b15d7e68d58a7a07ac7260d681eb

parent

9a9381bda9c2610cba5d0fd8033d1dd00e9eb02d

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/psp2/threading.hsrc/platform/psp2/threading.h

@@ -77,9 +77,9 @@ SceUInt timeout = 0;

if (timeoutMs > 0) { timeout = timeoutMs; } - sceKernelWaitSema(cond->semaphore, 1, &timeout); + int ret = sceKernelWaitSema(cond->semaphore, 1, &timeout); MutexLock(mutex); - return 0; + return ret; } static inline int ConditionWake(Condition* cond) {