10 writes to MaxDegreeOfParallelism
Microsoft.Build (3)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
32private static readonly ParallelOptions s_parallelOptions = new() { MaxDegreeOfParallelism = Environment.ProcessorCount };
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
114new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount },
FileMatcher.cs (1)
1016new ParallelOptions { MaxDegreeOfParallelism = dop },
Microsoft.Build.Tasks.Core (1)
FileMatcher.cs (1)
1016new ParallelOptions { MaxDegreeOfParallelism = dop },
Microsoft.Build.Utilities.Core (1)
FileMatcher.cs (1)
1016new ParallelOptions { MaxDegreeOfParallelism = dop },
Microsoft.DotNet.SignTool (1)
src\BatchSignUtil.cs (1)
232parallelOptions.MaxDegreeOfParallelism = _repackParallelism;
MonoAOTCompiler (1)
MonoAOTCompiler.cs (1)
558new ParallelOptions { MaxDegreeOfParallelism = allowedParallelism },
MonoTargetsTasks (2)
EmitBundleTask\EmitBundleBase.cs (1)
163Parallel.For(0, remainingDestinationFilesToBundle.Length, new ParallelOptions { MaxDegreeOfParallelism = allowedParallelism, CancellationToken = BuildTaskCancelled.Token }, (i, state) =>
ILStrip\ILStrip.cs (1)
81new ParallelOptions { MaxDegreeOfParallelism = allowedParallelism },
WasmAppBuilder (1)
EmccCompile.cs (1)
165new ParallelOptions { MaxDegreeOfParallelism = allowedParallelism },
9 references to MaxDegreeOfParallelism
System.Threading.Tasks.Parallel (9)
System\Threading\Tasks\Parallel.cs (9)
39/// This constructor initializes the instance with default values. <see cref="MaxDegreeOfParallelism"/> 70/// The <see cref="MaxDegreeOfParallelism"/> limits the number of concurrent operations run by <see 73/// cref="MaxDegreeOfParallelism"/> is -1, then there is no limit placed on the number of concurrently 77/// The exception that is thrown when this <see cref="MaxDegreeOfParallelism"/> is set to 0 or some 85ArgumentOutOfRangeException.ThrowIfZero(value, nameof(MaxDegreeOfParallelism)); 86ArgumentOutOfRangeException.ThrowIfLessThan(value, -1, nameof(MaxDegreeOfParallelism)); 112int rval = MaxDegreeOfParallelism; 249(parallelOptions.MaxDegreeOfParallelism != -1 && parallelOptions.MaxDegreeOfParallelism < actionsCopy.Length)