diff options
author | Mary <mary@mary.zone> | 2022-02-09 21:18:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 17:18:07 -0300 |
commit | 6dffe0fad4bc8dee0e25ce038639d890b29d56a0 (patch) | |
tree | 5c4645911c473ec1ffa9f560c81f34212e963670 /Ryujinx.HLE/HOS/Kernel/KernelContext.cs | |
parent | 86b37d0ff7764ac62b1e9578b07a8b648a3bd55a (diff) |
misc: Make PID unsigned long instead of long (#3043)1.1.22
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; } |