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