From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 8 Apr 2023 01:22:00 +0200 Subject: Move solution and projects to src --- .../Multithreading/ThreadedHelpers.cs | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 Ryujinx.Graphics.GAL/Multithreading/ThreadedHelpers.cs (limited to 'Ryujinx.Graphics.GAL/Multithreading/ThreadedHelpers.cs') diff --git a/Ryujinx.Graphics.GAL/Multithreading/ThreadedHelpers.cs b/Ryujinx.Graphics.GAL/Multithreading/ThreadedHelpers.cs deleted file mode 100644 index 7ddb19e6..00000000 --- a/Ryujinx.Graphics.GAL/Multithreading/ThreadedHelpers.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading; - -namespace Ryujinx.Graphics.GAL.Multithreading -{ - static class ThreadedHelpers - { - public static void SpinUntilNonNull(ref T obj) where T : class - { - Span spinWait = stackalloc SpinWait[1]; - - while (obj == null) - { - spinWait[0].SpinOnce(-1); - } - } - - public static void SpinUntilExchange(ref int target, int value, int comparand) - { - Span spinWait = stackalloc SpinWait[1]; - - while (Interlocked.CompareExchange(ref target, value, comparand) != comparand) - { - spinWait[0].SpinOnce(-1); - } - } - } -} -- cgit v1.2.3