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)
244
_coreLimit = NativeMethodsShared.
GetLogicalCoreCount
();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
547
NativeMethodsShared.
GetLogicalCoreCount
(),
FileMatcher.cs (1)
2592
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)
155
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)
4037
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)
682
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
()).ToArray();
1415
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1471
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
() * 2).ToArray();
1488
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1534
var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.
GetLogicalCoreCount
() * 2).ToArray();
1548
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
(),
1598
var projectPaths = Enumerable.Range(0, NativeMethodsShared.
GetLogicalCoreCount
())
1628
MaxNodeCount = NativeMethodsShared.
GetLogicalCoreCount
()
Microsoft.Build.Tasks.Core (2)
Copy.cs (1)
45
private static readonly int DefaultCopyParallelism = NativeMethodsShared.
GetLogicalCoreCount
() > 4 ? 6 : 4;
FileMatcher.cs (1)
2592
var maxTasks = Math.Max(1, NativeMethodsShared.
GetLogicalCoreCount
() / 2);
Microsoft.Build.Utilities.Core (1)
FileMatcher.cs (1)
2592
var maxTasks = Math.Max(1, NativeMethodsShared.
GetLogicalCoreCount
() / 2);
MSBuild (1)
XMake.cs (1)
2117
int numberOfCpus = NativeMethodsShared.
GetLogicalCoreCount
();