Browse Source

fixed silverlight compile bug from last commit

la-knuth
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) public static void Invoke(params Action[] actions)
{ {
var maxThreads = Control.DisableParallelization ? 1 : Control.NumberOfParallelWorkerThreads; var maxThreads = Control.DisableParallelization ? 1 : Control.NumberOfParallelWorkerThreads;
#if SILVERLIGHT
Parallel.Invoke(actions);
#else
Parallel.Invoke( Parallel.Invoke(
new ParallelOptions new ParallelOptions
{ {
MaxDegreeOfParallelism = maxThreads MaxDegreeOfParallelism = maxThreads
}, },
actions); actions);
#endif
} }
/// <summary> /// <summary>

Loading…
Cancel
Save