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);
269
while (Interlocked.
CompareExchange
(ref RefCount, curr, prev) != prev);
373
} while (Interlocked.
CompareExchange
(ref RefCount, refCount, prev) != prev);
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (1)
570
CompareExchange
(ref Unsafe.AsRef(in location), 0, 0);
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
288
new Counts(Interlocked.
CompareExchange
(ref _data, newCounts._data, oldCounts._data));
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
173
return new ThreadCounts(Interlocked.
CompareExchange
(ref _data, newCounts._data, oldCounts._data));