6 references to CompareExchange
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (3)
254} while (Interlocked.CompareExchange(ref RefCount, curr, prev) != prev); 269while (Interlocked.CompareExchange(ref RefCount, curr, prev) != prev); 366} while (Interlocked.CompareExchange(ref RefCount, refCount, prev) != prev);
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (1)
576CompareExchange(ref Unsafe.AsRef(in location), 0, 0);
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
364new Counts(Interlocked.CompareExchange(ref _data, newCounts._data, oldCounts._data));
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
114return new ThreadCounts(Interlocked.CompareExchange(ref _data, newCounts._data, oldCounts._data));