From 96dbd4162eb7b372317e47d29b345541af9d6712 Mon Sep 17 00:00:00 2001 From: Marcus Cuda Date: Fri, 21 Aug 2009 21:14:08 +0800 Subject: [PATCH] Parallel: maybe I should check in something that actually compiles Signed-off-by: Marcus Cuda --- src/Numerics/Threading/Parallel.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Numerics/Threading/Parallel.cs b/src/Numerics/Threading/Parallel.cs index 9018d558..b49c19ca 100644 --- a/src/Numerics/Threading/Parallel.cs +++ b/src/Numerics/Threading/Parallel.cs @@ -128,14 +128,15 @@ namespace MathNet.Numerics.Threading var tasks = new Task[ThreadQueue.ThreadCount]; var size = count / tasks.Length; - if (count <= 1) - { + if (count <= 0){ + // if (count <= 1) +// { // if (count == 1) // { // body(fromInclusive); // } - // return; + return; } var intial = localInit();