system\threading\threadpool.cs (5)
462int prevIndexes = Interlocked.CompareExchange(ref indexes, newIndexes, oldIndexes);
583int prev = Interlocked.CompareExchange(ref numOutstandingThreadRequests, count+1, count);
605int prev = Interlocked.CompareExchange(ref numOutstandingThreadRequests, count - 1, count);
1005if (Interlocked.CompareExchange(ref m_lock, 1, 0) == 0)
1074if (Interlocked.CompareExchange(ref m_lock, 1, 0) == 0)