4 references to CompareExchange
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\ComAwareWeakReference.cs (1)
135if (Interlocked.CompareExchange(ref taggedHandle, newTaggedHandle, current) == current)
src\libraries\System.Private.CoreLib\src\System\Threading\Win32ThreadPoolNativeOverlapped.cs (2)
57if (Interlocked.CompareExchange(ref s_freeList, overlapped->_nextFree, freePtr) != freePtr) 170if (Interlocked.CompareExchange(ref s_freeList, (IntPtr)overlapped, freePtr) == freePtr)
src\System\RuntimeType.CoreCLR.cs (1)
2460IntPtr gcHandle = Interlocked.CompareExchange(ref m_cache, newgcHandle, IntPtr.Zero);