13 references to PlatformHelper
mscorlib (13)
system\Collections\Concurrent\ConcurrentDictionary.cs (1)
1955
get { return
PlatformHelper
.ProcessorCount; }
system\collections\concurrent\PartitionerStatic.cs (3)
203
(
PlatformHelper
.ProcessorCount * coreOversubscriptionRate);
260
(
PlatformHelper
.ProcessorCount * coreOversubscriptionRate);
604
int fillBufferMultiplier = (
PlatformHelper
.ProcessorCount > 4) ? 4 : 1;
system\threading\CancellationTokenSource.cs (2)
52
private static readonly int s_nLists = (
PlatformHelper
.ProcessorCount > 24) ? 24 :
PlatformHelper
.ProcessorCount;
system\threading\ManualResetEventSlim.cs (1)
250
SpinCount =
PlatformHelper
.IsSingleProcessor ? DEFAULT_SPIN_SP : spinCount;
system\threading\SpinLock.cs (1)
379
int processorCount =
PlatformHelper
.ProcessorCount;
system\threading\SpinWait.cs (1)
110
get { return m_count > YIELD_THRESHOLD ||
PlatformHelper
.IsSingleProcessor; }
system\threading\Tasks\Parallel.cs (3)
1073
PlatformHelper
.ProcessorCount :
1388
PlatformHelper
.ProcessorCount :
3580
int timeOut = s_BaseNotifyPeriodMS + (nWorkerTaskIndex %
PlatformHelper
.ProcessorCount) * s_NotifyPeriodIncrementMS;
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