24 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)
635return Math.Max(1, (3 * NativeMethodsShared.GetLogicalCoreCount()) / 2);
BackEnd\Components\Scheduler\Scheduler.cs (1)
243_coreLimit = NativeMethodsShared.GetLogicalCoreCount();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
547NativeMethodsShared.GetLogicalCoreCount(),
Graph\ProjectGraph.cs (2)
341NativeMethodsShared.GetLogicalCoreCount(), 382NativeMethodsShared.GetLogicalCoreCount(),
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
141parameters[1].ShouldBe(Convert.ToString(NativeMethodsShared.GetLogicalCoreCount()));
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2835var itemElements = NativeMethodsShared.GetLogicalCoreCount() * 5;
Microsoft.Build.Engine.UnitTests (13)
BackEnd\BuildManager_Tests.cs (1)
4082MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(),
Graph\ParallelWorkSet_Tests.cs (4)
69DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(), 97DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount() 112DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(), 176DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(),
ProjectCache\ProjectCacheTests.cs (8)
681var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount()).ToArray(); 1414MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1470var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1487MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1533var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1547MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1597var projectPaths = Enumerable.Range(0, NativeMethodsShared.GetLogicalCoreCount()) 1627MaxNodeCount = NativeMethodsShared.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();