mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-31 18:19:57 -06:00
Add missing check for thread termination on ArbitrateLock (#4722)
* Add missing check for thread termination on ArbitrateLock * Use TerminationRequested in all places where it can be used
This commit is contained in:
@ -188,8 +188,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Ipc
|
||||
|
||||
if (request.AsyncEvent == null)
|
||||
{
|
||||
if (request.ClientThread.ShallBeTerminated ||
|
||||
request.ClientThread.SchedFlags == ThreadSchedState.TerminationPending)
|
||||
if (request.ClientThread.TerminationRequested)
|
||||
{
|
||||
return KernelResult.ThreadTerminating;
|
||||
}
|
||||
@ -1104,8 +1103,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Ipc
|
||||
{
|
||||
foreach (KSessionRequest request in IterateWithRemovalOfAllRequests())
|
||||
{
|
||||
if (request.ClientThread.ShallBeTerminated ||
|
||||
request.ClientThread.SchedFlags == ThreadSchedState.TerminationPending)
|
||||
if (request.ClientThread.TerminationRequested)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user