7 references to CompareExchange
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
93
ulong previousCrashingThreadId = Interlocked.
CompareExchange
(ref s_crashingThreadId, currentThreadId, 0);
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)
572
CompareExchange
(ref Unsafe.AsRef(in location), 0, 0);
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
364
new Counts(Interlocked.
CompareExchange
(ref _data, newCounts._data, oldCounts._data));
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
114
return new ThreadCounts(Interlocked.
CompareExchange
(ref _data, newCounts._data, oldCounts._data));