Changeset 7782 for trunk/sources/HeuristicLab.Clients.Hive
- Timestamp:
- 05/04/12 17:57:40 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveTasks/OptimizerHiveTask.cs
r7259 r7782 31 31 namespace HeuristicLab.Clients.Hive { 32 32 public class OptimizerHiveTask : HiveTask<OptimizerTask> { 33 34 Object batchRunLocker = new Object(); 33 35 34 36 #region Constructors and Cloning … … 224 226 batchRun.Optimizer = (IOptimizer)optimizerTask.Item; // only set the first optimizer as Optimizer. if every time the Optimizer would be set, the runs would be cleared each time 225 227 } 226 foreach (IRun run in optimizerTask.Item.Runs) { 227 if (!batchRun.Runs.Contains(run)) { 228 run.Name = GetNewRunName(run, batchRun.Runs); 229 batchRun.Runs.Add(run); 228 lock (batchRunLocker) { 229 foreach (IRun run in optimizerTask.Item.Runs) { 230 if (!batchRun.Runs.Contains(run)) { 231 run.Name = GetNewRunName(run, batchRun.Runs); 232 batchRun.Runs.Add(run); 233 } 230 234 } 231 235 } -
trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs
r7582 r7782 316 316 UpdateStatistics(); 317 317 OnStateLogListChanged(); 318 OnTaskReceived(); 318 319 } 319 320 … … 469 470 if (handler != null) handler(this, EventArgs.Empty); 470 471 } 472 public event EventHandler TaskReceived; 473 protected virtual void OnTaskReceived() { 474 var handler = TaskReceived; 475 if (handler != null) handler(this, EventArgs.Empty); 476 } 471 477 #endregion 472 478
Note: See TracChangeset
for help on using the changeset viewer.