25 references to GetLogicalCoreCount
Microsoft.Build (6)
BackEnd\Components\Caching\ResultsCache.cs (1)
252
capacity => new ConcurrentDictionary<int, BuildResult>(NativeMethodsShared.
GetLogicalCoreCount
(), capacity));
BackEnd\Components\Scheduler\Scheduler.cs (1)
213
_coreLimit = NativeMethodsShared.
GetLogicalCoreCount
();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
516
NativeMethodsShared.
GetLogicalCoreCount
(),
FileMatcher.cs (1)
2576
var maxTasks = Math.Max(1, NativeMethodsShared.
GetLogicalCoreCount
() / 2);
Graph\ProjectGraph.cs (2)
341
NativeMethodsShared.
GetLogicalCoreCount
(),
382
NativeMethodsShared.
GetLogicalCoreCount
(),
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
109
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)
4038
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)
663
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
()).ToArray();
1396
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1452
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
() * 2).ToArray();
1469
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1515
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
() * 2).ToArray();
1529
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1579
var projectPaths = Enumerable.Range(0, NativeMethodsShared.
GetLogicalCoreCount
())
1609
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
()
Microsoft.Build.Tasks.Core (2)
Copy.cs (1)
46
private static readonly int DefaultCopyParallelism = NativeMethodsShared.
GetLogicalCoreCount
() > 4 ? 6 : 4;
FileMatcher.cs (1)
2576
var maxTasks = Math.Max(1, NativeMethodsShared.
GetLogicalCoreCount
() / 2);
Microsoft.Build.Utilities.Core (1)
FileMatcher.cs (1)
2576
var maxTasks = Math.Max(1, NativeMethodsShared.
GetLogicalCoreCount
() / 2);
MSBuild (1)
XMake.cs (1)
2088
int numberOfCpus = NativeMethodsShared.
GetLogicalCoreCount
();