6 references to InterlockedCompareExchange
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (1)
166
threadPoolInstance._separated.counts.
InterlockedCompareExchange
(newCounts, counts);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
152
ThreadCounts countsBeforeUpdate =
InterlockedCompareExchange
(newCounts, counts);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.cs (4)
211
threadPoolInstance._separated.counts.
InterlockedCompareExchange
(newCounts, counts);
247
if (threadPoolInstance._separated.counts.
InterlockedCompareExchange
(newCounts, oldCounts) == oldCounts)
272
if (threadPoolInstance._separated.counts.
InterlockedCompareExchange
(newCounts, oldCounts) == oldCounts)
321
ThreadCounts oldCounts = threadPoolInstance._separated.counts.
InterlockedCompareExchange
(newCounts, counts);