5 references to CompareExchange
mscorlib (4)
system\gc.cs (1)
601
(Interlocked.
CompareExchange
(ref _handle, IntPtr.Zero, temp) == temp))
system\rttype.cs (1)
2748
IntPtr gcHandle = Interlocked.
CompareExchange
(ref m_cache, newgcHandle, (IntPtr)0);
system\runtime\interopservices\gchandle.cs (1)
112
if (handle != IntPtr.Zero && Interlocked.
CompareExchange
(ref m_handle, IntPtr.Zero, handle) == handle)
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
1245
if (Interlocked.
CompareExchange
(ref s_pClassActivator, pActivator, IntPtr.Zero) != IntPtr.Zero)
System.Data (1)
fx\src\data\System\Data\Common\SafeNativeMethods.cs (1)
63
actualPtr = Interlocked.
CompareExchange
(ref *(IntPtr *)lpAddress.ToPointer(), lpValue, previousPtr);