6 references to YIELD_THRESHOLD
mscorlib (6)
system\threading\ManualResetEventSlim.cs (1)
57private const int DEFAULT_SPIN_MP = SpinWait.YIELD_THRESHOLD;
system\threading\SpinWait.cs (4)
110get { return m_count > YIELD_THRESHOLD || PlatformHelper.IsSingleProcessor; } 142int yieldsSoFar = (m_count >= YIELD_THRESHOLD ? m_count - YIELD_THRESHOLD : m_count); 178m_count = (m_count == int.MaxValue ? YIELD_THRESHOLD : m_count + 1);
system\threading\Tasks\Task.cs (1)
3359int spinCount = PlatformHelper.IsSingleProcessor ? 1 : System.Threading.SpinWait.YIELD_THRESHOLD; //spin only once if we are running on a single CPU