diff options
author | Phil Garcia <phil@thinkedge.com> | 2018-04-16 13:11:53 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-04-16 13:11:53 -0700 |
commit | 06354eeef920d12199da6c545aca411363c0f1f0 (patch) | |
tree | a9a35ff4720a76e8d296623806b5d20a57cf43bf /src | |
parent | 1a72254e9ad95181daa420547991ebeebab41f91 (diff) | |
download | coreclr-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.cs | 2 |
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); |