24 references to GetLogicalCoreCount
Microsoft.Build (6)
BackEnd\Components\Caching\ResultsCache.cs (1)
252
capacity => new ConcurrentDictionary<int, BuildResult>(NativeMethodsShared.
GetLogicalCoreCount
(), capacity));
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
635
return Math.Max(1, (3 * NativeMethodsShared.
GetLogicalCoreCount
()) / 2);
BackEnd\Components\Scheduler\Scheduler.cs (1)
243
_coreLimit = NativeMethodsShared.
GetLogicalCoreCount
();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
547
NativeMethodsShared.
GetLogicalCoreCount
(),
Graph\ProjectGraph.cs (2)
341
NativeMethodsShared.
GetLogicalCoreCount
(),
382
NativeMethodsShared.
GetLogicalCoreCount
(),
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
141
parameters[1].ShouldBe(Convert.ToString(NativeMethodsShared.
GetLogicalCoreCount
()));
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2835
var itemElements = NativeMethodsShared.
GetLogicalCoreCount
() * 5;
Microsoft.Build.Engine.UnitTests (13)
BackEnd\BuildManager_Tests.cs (1)
4082
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
Graph\ParallelWorkSet_Tests.cs (4)
69
DegreeOfParallelism = NativeMethodsShared.
GetLogicalCoreCount
(),
97
DegreeOfParallelism = NativeMethodsShared.
GetLogicalCoreCount
()
112
DegreeOfParallelism = NativeMethodsShared.
GetLogicalCoreCount
(),
176
DegreeOfParallelism = NativeMethodsShared.
GetLogicalCoreCount
(),
ProjectCache\ProjectCacheTests.cs (8)
681
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
()).ToArray();
1414
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1470
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
() * 2).ToArray();
1487
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1533
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
() * 2).ToArray();
1547
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1597
var projectPaths = Enumerable.Range(0, NativeMethodsShared.
GetLogicalCoreCount
())
1627
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
()
Microsoft.Build.Framework (1)
Utilities\FileMatcher.cs (1)
2595
var maxTasks = Math.Max(1, NativeMethods.
GetLogicalCoreCount
() / 2);
Microsoft.Build.Tasks.Core (1)
Copy.cs (1)
44
private static readonly int DefaultCopyParallelism = NativeMethodsShared.
GetLogicalCoreCount
() > 4 ? 6 : 4;
MSBuild (1)
CommandLine\CommandLineParser.cs (1)
287
int numberOfCpus = NativeMethodsShared.
GetLogicalCoreCount
();