Reset waits when terminating a thread.
Terminated threads can't be waiting.
This commit is contained in:
parent
e19fdef0fd
commit
2577f65b80
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue