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