9 references to GetLogicalCoreCount
Microsoft.Build (6)
BackEnd\Components\Caching\ResultsCache.cs (1)
252capacity => new ConcurrentDictionary<int, BuildResult>(NativeMethodsShared.GetLogicalCoreCount(), capacity));
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
633return Math.Max(1, (3 * NativeMethodsShared.GetLogicalCoreCount()) / 2);
BackEnd\Components\Scheduler\Scheduler.cs (1)
255_coreLimit = NativeMethodsShared.GetLogicalCoreCount();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
547NativeMethodsShared.GetLogicalCoreCount(),
Graph\ProjectGraph.cs (2)
341NativeMethodsShared.GetLogicalCoreCount(), 382NativeMethodsShared.GetLogicalCoreCount(),
Microsoft.Build.Framework (1)
Utilities\FileMatcher.cs (1)
2595var maxTasks = Math.Max(1, NativeMethods.GetLogicalCoreCount() / 2);
Microsoft.Build.Tasks.Core (1)
Copy.cs (1)
44private static readonly int DefaultCopyParallelism = NativeMethodsShared.GetLogicalCoreCount() > 4 ? 6 : 4;
MSBuild (1)
CommandLine\CommandLineParser.cs (1)
287int numberOfCpus = NativeMethodsShared.GetLogicalCoreCount();