diff options
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/KernelContext.cs')
-rw-r--r-- | Ryujinx.HLE/HOS/Kernel/KernelContext.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/KernelContext.cs b/Ryujinx.HLE/HOS/Kernel/KernelContext.cs index 4f18faca..4b8e4d15 100644 --- a/Ryujinx.HLE/HOS/Kernel/KernelContext.cs +++ b/Ryujinx.HLE/HOS/Kernel/KernelContext.cs @@ -42,14 +42,14 @@ namespace Ryujinx.HLE.HOS.Kernel public KSynchronization Synchronization { get; } public KContextIdManager ContextIdManager { get; } - public ConcurrentDictionary<long, KProcess> Processes { get; } + public ConcurrentDictionary<ulong, KProcess> Processes { get; } public ConcurrentDictionary<string, KAutoObject> AutoObjectNames { get; } public bool ThreadReselectionRequested { get; set; } - private long _kipId; - private long _processId; - private long _threadUid; + private ulong _kipId; + private ulong _processId; + private ulong _threadUid; public KernelContext( Switch device, @@ -98,7 +98,7 @@ namespace Ryujinx.HLE.HOS.Kernel KernelInitialized = true; - Processes = new ConcurrentDictionary<long, KProcess>(); + Processes = new ConcurrentDictionary<ulong, KProcess>(); AutoObjectNames = new ConcurrentDictionary<string, KAutoObject>(); _kipId = KernelConstants.InitialKipId; @@ -115,17 +115,17 @@ namespace Ryujinx.HLE.HOS.Kernel new Thread(PreemptionThreadStart) { Name = "HLE.PreemptionThread" }.Start(); } - public long NewThreadUid() + public ulong NewThreadUid() { return Interlocked.Increment(ref _threadUid) - 1; } - public long NewKipId() + public ulong NewKipId() { return Interlocked.Increment(ref _kipId) - 1; } - public long NewProcessId() + public ulong NewProcessId() { return Interlocked.Increment(ref _processId) - 1; } |