mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Remove some unreachable code.
This wasn't being used, and the other path should be fine.
This commit is contained in:
parent
b5bb07b12c
commit
53340056fd
1 changed files with 1 additions and 10 deletions
|
@ -387,16 +387,7 @@ static int __KernelWaitSema(SceUID id, int wantedCount, u32 timeoutPtr, bool pro
|
||||||
// If there are any callbacks, we always wait, and wake after the callbacks.
|
// If there are any callbacks, we always wait, and wake after the callbacks.
|
||||||
bool hasCallbacks = processCallbacks && __KernelCurHasReadyCallbacks();
|
bool hasCallbacks = processCallbacks && __KernelCurHasReadyCallbacks();
|
||||||
if (s->ns.currentCount >= wantedCount && s->waitingThreads.size() == 0 && !hasCallbacks)
|
if (s->ns.currentCount >= wantedCount && s->waitingThreads.size() == 0 && !hasCallbacks)
|
||||||
{
|
|
||||||
if (hasCallbacks)
|
|
||||||
{
|
|
||||||
// Might actually end up having to wait, so set the timeout.
|
|
||||||
__KernelSetSemaTimeout(s, timeoutPtr);
|
|
||||||
__KernelWaitCallbacksCurThread(WAITTYPE_SEMA, id, wantedCount, timeoutPtr);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
s->ns.currentCount -= wantedCount;
|
s->ns.currentCount -= wantedCount;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SceUID threadID = __KernelGetCurThread();
|
SceUID threadID = __KernelGetCurThread();
|
||||||
|
|
Loading…
Add table
Reference in a new issue