mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-08 14:25:47 +00:00
@@ -6,7 +6,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||
{
|
||||
private readonly KernelContext _context;
|
||||
private int _recursionCount;
|
||||
|
||||
|
||||
// type is not Lock due to Monitor class usage
|
||||
public object Lock { get; } = new();
|
||||
|
||||
|
||||
@@ -46,10 +46,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||
|
||||
_currentThread = null;
|
||||
|
||||
if (_srcCoresHighestPrioThreads == null)
|
||||
{
|
||||
_srcCoresHighestPrioThreads = new int[CpuCoresCount];
|
||||
}
|
||||
_srcCoresHighestPrioThreads ??= new int[CpuCoresCount];
|
||||
}
|
||||
|
||||
private static int PreemptionPriorities(int index)
|
||||
|
||||
@@ -537,7 +537,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||
|
||||
ThreadSchedState lowNibble = SchedFlags & ThreadSchedState.LowMask;
|
||||
|
||||
if (lowNibble != ThreadSchedState.Paused && lowNibble != ThreadSchedState.Running)
|
||||
if (lowNibble is not ThreadSchedState.Paused and not ThreadSchedState.Running)
|
||||
{
|
||||
KernelContext.CriticalSection.Leave();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user