Changeset 15292 for stable/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessRegressionTest.cs
- Timestamp:
- 07/28/17 16:47:42 (7 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/branches/Async (added) merged: 13329,13349,13354-13355,13401,15065,15190,15204,15212,15215-15216,15232,15280-15281,15284,15286 /trunk/sources merged: 15287
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests
- Property svn:mergeinfo changed
/branches/Async/HeuristicLab.Tests (added) merged: 13355,13401,15065,15280-15281 /trunk/sources/HeuristicLab.Tests merged: 15287
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessRegressionTest.cs
r14186 r15292 22 22 using System; 23 23 using System.Linq; 24 using System.Threading;25 24 using HeuristicLab.Common; 26 25 using HeuristicLab.Problems.DataAnalysis; … … 39 38 } 40 39 41 private EventWaitHandle trigger = new AutoResetEvent(false);42 40 private Exception ex; 43 41 … … 66 64 67 65 alg.ExceptionOccurred += new EventHandler<EventArgs<Exception>>(cv_ExceptionOccurred); 68 alg.Stopped += new EventHandler(cv_Stopped);69 66 70 67 alg.Prepare(); 71 68 alg.Start(); 72 trigger.WaitOne();73 69 if (ex != null) throw ex; 74 70 … … 79 75 ex = e.Value; 80 76 } 81 82 private void cv_Stopped(object sender, EventArgs e) {83 trigger.Set();84 }85 77 } 86 78 }
Note: See TracChangeset
for help on using the changeset viewer.