40 if (sleep1Threshold < -1)
44 if (sleep1Threshold >= 0 && sleep1Threshold < 10)
55 if (
_count >= sleep1Threshold && sleep1Threshold >= 0)
96 long num = (long)
timeout.TotalMilliseconds;
97 if (num < -1 || num >
int.MaxValue)
110 if (condition ==
null)
static bool IsSingleProcessor
static string ArgumentOutOfRange_NeedNonNegOrNegative1
static string SpinWait_SpinUntil_TimeoutWrong
static string SpinWait_SpinUntil_ArgumentNull
static int OptimalMaxSpinWaitsPerSpinIteration
static void Sleep(int millisecondsTimeout)
static void SpinWait(int iterations)
static bool SpinUntil(Func< bool > condition, int millisecondsTimeout)
static void SpinUntil(Func< bool > condition)
void SpinOnceCore(int sleep1Threshold)
static readonly int SpinCountforSpinBeforeWait
void SpinOnce(int sleep1Threshold)
static bool SpinUntil(Func< bool > condition, TimeSpan timeout)