Changeset 8836 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4
- Timestamp:
- 10/23/12 11:56:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r8738 r8836 24 24 using System.Drawing; 25 25 using System.Linq; 26 using System.Threading; 26 27 using HeuristicLab.Collections; 27 28 using HeuristicLab.Common; … … 311 312 if (clonedAlgorithm.ExecutionState == ExecutionState.Prepared || 312 313 clonedAlgorithm.ExecutionState == ExecutionState.Paused) { 313 clonedAlgorithm.Start(); 314 startedAlgorithms++; 314 315 // start and wait until the alg is started 316 using (var signal = new ManualResetEvent(false)) { 317 EventHandler signalSetter = (sender, args) => { signal.Set(); }; 318 clonedAlgorithm.Started += signalSetter; 319 clonedAlgorithm.Start(); 320 signal.WaitOne(); 321 clonedAlgorithm.Started -= signalSetter; 322 323 startedAlgorithms++; 324 } 315 325 } 316 326 }
Note: See TracChangeset
for help on using the changeset viewer.