Browse Source

make ParallelExecutionSettings a readonly struct

af/merge-core
Anton Firszov 8 years ago
parent
commit
0e443beeec
  1. 5
      src/ImageSharp/Common/ParallelUtils/ParallelExecutionSettings.cs

5
src/ImageSharp/Common/ParallelUtils/ParallelExecutionSettings.cs

@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.ParallelUtils
/// <summary> /// <summary>
/// Defines execution settings for methods in <see cref="ParallelHelper"/>. /// Defines execution settings for methods in <see cref="ParallelHelper"/>.
/// </summary> /// </summary>
internal struct ParallelExecutionSettings internal readonly struct ParallelExecutionSettings
{ {
/// <summary> /// <summary>
/// Default value for <see cref="MinimumPixelsProcessedPerTask"/>. /// Default value for <see cref="MinimumPixelsProcessedPerTask"/>.
@ -51,7 +51,8 @@ namespace SixLabors.ImageSharp.ParallelUtils
/// <summary> /// <summary>
/// Gets the minimum number of pixels being processed by a single task when parallelizing operations with TPL. /// Gets the minimum number of pixels being processed by a single task when parallelizing operations with TPL.
/// Launching tasks for pixel regions below this limit is not worth the overhead. /// Launching tasks for pixel regions below this limit is not worth the overhead.
/// Initialized with 2048 by default, the optimum value is operation specific. /// Initialized with <see cref="DefaultMinimumPixelsProcessedPerTask"/> by default,
/// the optimum value is operation specific. (The cheaper the operation, the larger the value is.)
/// </summary> /// </summary>
public int MinimumPixelsProcessedPerTask { get; } public int MinimumPixelsProcessedPerTask { get; }

Loading…
Cancel
Save