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