mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-21 05:08:01 +00:00
Reset waits when terminating a thread.
Terminated threads can't be waiting.
This commit is contained in:
parent
e19fdef0fd
commit
2577f65b80
@ -1738,6 +1738,10 @@ void __KernelStopThread(SceUID threadID, int exitStatus, const char *reason)
|
||||
}
|
||||
}
|
||||
t->waitingThreads.clear();
|
||||
|
||||
// Stopped threads are never waiting.
|
||||
t->nt.waitType = WAITTYPE_NONE;
|
||||
t->nt.waitID = 0;
|
||||
}
|
||||
else
|
||||
ERROR_LOG_REPORT(SCEKERNEL, "__KernelStopThread: thread %d does not exist", threadID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user