mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-04 15:01:06 +02:00
misc: chore: Use collection expressions (part 2)
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Common
|
||||
_current2 = new long[(int)LimitableResource.Count];
|
||||
_peak = new long[(int)LimitableResource.Count];
|
||||
|
||||
_waitingThreads = new LinkedList<KThread>();
|
||||
_waitingThreads = [];
|
||||
}
|
||||
|
||||
public bool Reserve(LimitableResource resource, ulong amount)
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Common
|
||||
|
||||
public KSynchronizationObject(KernelContext context) : base(context)
|
||||
{
|
||||
WaitingThreads = new LinkedList<KThread>();
|
||||
WaitingThreads = [];
|
||||
}
|
||||
|
||||
public LinkedListNode<KThread> AddWaitingThread(KThread thread)
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Common
|
||||
public KTimeManager(KernelContext context)
|
||||
{
|
||||
_context = context;
|
||||
_waitingObjects = new List<WaitingObject>();
|
||||
_waitingObjects = [];
|
||||
_keepRunning = true;
|
||||
|
||||
Thread work = new(WaitAndCheckScheduledObjects)
|
||||
|
||||
Reference in New Issue
Block a user