Changeset 15384 for stable/HeuristicLab.Algorithms.DataAnalysis/3.4
- Timestamp:
- 09/28/17 08:04:05 (7 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15367
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Algorithms.DataAnalysis merged: 15367
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r15292 r15384 352 352 allAlgorithmsFinished = new ManualResetEventSlim(false); 353 353 354 var startedTasks = new List<Task>(clonedAlgorithms.Count); 355 354 356 //start prepared or paused cloned algorithms 355 357 foreach (IAlgorithm clonedAlgorithm in clonedAlgorithms) { … … 360 362 lock (locker) { 361 363 if (pausePending || stopPending || ExecutionState != ExecutionState.Started) break; 362 clonedAlgorithm.StartAsync(cancellationToken); 364 var task = clonedAlgorithm.StartAsync(cancellationToken); 365 startedTasks.Add(task); 363 366 } 364 367 } … … 366 369 367 370 allAlgorithmsFinished.Wait(); 371 372 Task.WaitAll(startedTasks.ToArray()); // to get exceptions not handled within the tasks 368 373 } 369 374
Note: See TracChangeset
for help on using the changeset viewer.