9 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)
633
return Math.Max(1, (3 * NativeMethodsShared.
GetLogicalCoreCount
()) / 2);
BackEnd\Components\Scheduler\Scheduler.cs (1)
255
_coreLimit = NativeMethodsShared.
GetLogicalCoreCount
();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
547
NativeMethodsShared.
GetLogicalCoreCount
(),
Graph\ProjectGraph.cs (2)
341
NativeMethodsShared.
GetLogicalCoreCount
(),
382
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
();