Browse Source

fixed silverlight compile bug from last commit

pull/36/head
Marcus Cuda 16 years ago
parent
commit
518cdf2fbd
  1. 4
      src/Numerics/Threading/CommonParallel.cs

4
src/Numerics/Threading/CommonParallel.cs

@ -332,12 +332,16 @@ namespace MathNet.Numerics.Threading
public static void Invoke(params Action[] actions)
{
var maxThreads = Control.DisableParallelization ? 1 : Control.NumberOfParallelWorkerThreads;
#if SILVERLIGHT
Parallel.Invoke(actions);
#else
Parallel.Invoke(
new ParallelOptions
{
MaxDegreeOfParallelism = maxThreads
},
actions);
#endif
}
/// <summary>

Loading…
Cancel
Save