7 references to CompareExchange
System.Private.CoreLib (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (3)
255} while (Interlocked.CompareExchange(ref RefCount, curr, prev) != prev); 270while (Interlocked.CompareExchange(ref RefCount, curr, prev) != prev); 374} while (Interlocked.CompareExchange(ref RefCount, refCount, prev) != prev);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (1)
570CompareExchange(ref Unsafe.AsRef(in location), 0, 0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
552new Counts(Interlocked.CompareExchange(ref _data, newCounts._data, oldCounts._data));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
173return new ThreadCounts(Interlocked.CompareExchange(ref _data, newCounts._data, oldCounts._data));
System\RuntimeExceptionHelpers.cs (1)
242ulong previousThreadId = Interlocked.CompareExchange(ref s_crashingThreadId, currentThreadId, 0);