aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Common/Memory/PartialUnmaps/PartialUnmapState.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-08-11 18:07:37 -0300
committerGitHub <noreply@github.com>2022-08-11 18:07:37 -0300
commita5ff0024fb33964c802e1712e5b11a52390603e7 (patch)
treefdc0b7781541215cd728b8e0288b729f73dbad88 /Ryujinx.Common/Memory/PartialUnmaps/PartialUnmapState.cs
parentf9661a54d21c3020783d14fd9935bb7b741a6915 (diff)
Rename ToSpan to AsSpan (#3556)1.1.211
Diffstat (limited to 'Ryujinx.Common/Memory/PartialUnmaps/PartialUnmapState.cs')
-rw-r--r--Ryujinx.Common/Memory/PartialUnmaps/PartialUnmapState.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Common/Memory/PartialUnmaps/PartialUnmapState.cs b/Ryujinx.Common/Memory/PartialUnmaps/PartialUnmapState.cs
index 3b42e140..7a14e616 100644
--- a/Ryujinx.Common/Memory/PartialUnmaps/PartialUnmapState.cs
+++ b/Ryujinx.Common/Memory/PartialUnmaps/PartialUnmapState.cs
@@ -83,7 +83,7 @@ namespace Ryujinx.Common.Memory.PartialUnmaps
/// memory might be accessed but is unmapped. Users of the API must compensate for that by catching the
/// access violation and retrying if it happened between the unmap and remap operation.
/// This method can be used to decide if retrying in such cases is necessary or not.
- ///
+ ///
/// This version of the function is not used, but serves as a reference for the native
/// implementation in ARMeilleure.
/// </remarks>
@@ -128,12 +128,12 @@ namespace Ryujinx.Common.Memory.PartialUnmaps
const uint ExitCodeStillActive = 259;
const int ThreadQueryInformation = 0x40;
- Span<int> ids = LocalCounts.ThreadIds.ToSpan();
+ Span<int> ids = LocalCounts.ThreadIds.AsSpan();
for (int i = 0; i < ids.Length; i++)
{
int id = ids[i];
-
+
if (id != 0)
{
IntPtr handle = OpenThread(ThreadQueryInformation, false, (uint)id);