summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Garcia <phil@thinkedge.com>2018-04-16 13:11:53 -0700
committerJan Kotas <jkotas@microsoft.com>2018-04-16 13:11:53 -0700
commit06354eeef920d12199da6c545aca411363c0f1f0 (patch)
treea9a35ff4720a76e8d296623806b5d20a57cf43bf /src
parent1a72254e9ad95181daa420547991ebeebab41f91 (diff)
downloadcoreclr-06354eeef920d12199da6c545aca411363c0f1f0.tar.gz
coreclr-06354eeef920d12199da6c545aca411363c0f1f0.tar.bz2
coreclr-06354eeef920d12199da6c545aca411363c0f1f0.zip
Changed SpinLock::CompareExchange method declaration to static (#17579)
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/src/System/Threading/SpinLock.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/src/System/Threading/SpinLock.cs b/src/mscorlib/src/System/Threading/SpinLock.cs
index c23cd57be5..7e58a6cf89 100644
--- a/src/mscorlib/src/System/Threading/SpinLock.cs
+++ b/src/mscorlib/src/System/Threading/SpinLock.cs
@@ -94,7 +94,7 @@ namespace System.Threading
private static int MAXIMUM_WAITERS = WAITERS_MASK;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- private int CompareExchange(ref int location, int value, int comparand, ref bool success)
+ private static int CompareExchange(ref int location, int value, int comparand, ref bool success)
{
int result = Interlocked.CompareExchange(ref location, value, comparand);
success = (result == comparand);