7 references to CompareExchange
System.Data.OleDb (1)
SafeNativeMethods.cs (1)
31actualPtr = Interlocked.CompareExchange(ref *(IntPtr*)lpAddress.ToPointer(), lpValue, previousPtr);
System.Private.CoreLib (6)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
334var oldValue = Interlocked.CompareExchange(ref pCell->Handle, hModule, IntPtr.Zero);
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\CachedInterfaceDispatch.cs (1)
94if (Interlocked.CompareExchange(ref pDispatchCell->Code, pTargetCode, 0) == 0)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\LockFreeReaderHashtableOfPointers.cs (1)
467if (Interlocked.CompareExchange(ref hashTableLocal[tableIndex], new IntPtr(1), IntPtr.Zero) == IntPtr.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComAwareWeakReference.cs (1)
138if (Interlocked.CompareExchange(ref taggedHandle, newTaggedHandle, current) == current)
System\Runtime\InteropServices\TrackerObjectManager.NativeAot.cs (1)
101return Interlocked.CompareExchange(ref s_trackerManager, referenceTrackerManager, IntPtr.Zero) == IntPtr.Zero;
System\RuntimeType.NativeAot.cs (1)
78if (Interlocked.CompareExchange(ref _runtimeTypeInfoHandle, tempHandle, default) != default)