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);
270
while (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)
570
CompareExchange
(ref Unsafe.AsRef(in location), 0, 0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
552
new Counts(Interlocked.
CompareExchange
(ref _data, newCounts._data, oldCounts._data));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
173
return new ThreadCounts(Interlocked.
CompareExchange
(ref _data, newCounts._data, oldCounts._data));
System\RuntimeExceptionHelpers.cs (1)
242
ulong previousThreadId = Interlocked.
CompareExchange
(ref s_crashingThreadId, currentThreadId, 0);