mirror of https://github.com/mgba-emu/mgba.git
PSP2: Fix ConditionWaitTimed
This commit is contained in:
parent
9a9381bda9
commit
2ae4030c19
|
@ -77,9 +77,9 @@ static inline int ConditionWaitTimed(Condition* cond, Mutex* mutex, int32_t time
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue