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