Evolution/Evolution/Core/ParallelResult.cs
/// <summary>
/// Calls the action over the inputs. It uses the threadpool.
/// </summary>
/// <returns></returns>
Calls the action over the inputs. It uses the threadpool.
Calls the action over the inputs . It uses the threadpool .
public List<O> Run()
        {
            lock (lockObject)
            {
                counter = 0;
                foreach (I i in Input)
                {
                    counter++;
                    ThreadPool.QueueUserWorkItem(WorkUnit, i);
                }
            }
            waitHandle.WaitOne();
            waitHandle.Close();
            return output;
        }
public List < O > Run ( ) { lock ( lockObject ) { counter = 0 ; foreach ( I i in Input ) { counter ++ ; ThreadPool . QueueUserWorkItem ( WorkUnit , i ) ; } } waitHandle . WaitOne ( ) ; waitHandle . Close ( ) ; return output ; }
Calls the action over the inputs.
Calls the action over the inputs .
None