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