Changeset 6112 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
- Timestamp:
- 05/03/11 18:08:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
r6110 r6112 37 37 public Core Core { get; set; } 38 38 private Semaphore pauseStopSem = new Semaphore(0, 1); 39 private Semaphore startJobSem = new Semaphore(0, 1); 39 40 40 41 public bool SendHeartbeatForExecutor { get; set; } … … 86 87 } else { 87 88 Job.Start(); 88 89 startJobSem.WaitOne(); 89 90 } 90 91 } … … 140 141 Job.DeleteChildJobs += new EventHandler(Job_DeleteChildJobs); 141 142 Job.JobPaused += new EventHandler(Job_JobPaused); 143 Job.JobStarted += new EventHandler(Job_JobStarted); 142 144 } 143 145 … … 149 151 Job.DeleteChildJobs -= new EventHandler(Job_DeleteChildJobs); 150 152 Job.JobPaused -= new EventHandler(Job_JobPaused); 153 Job.JobStarted -= new EventHandler(Job_JobStarted); 151 154 } 152 155 … … 237 240 private void Job_JobPaused(object sender, EventArgs e) { 238 241 pauseStopSem.Release(); 242 } 243 244 void Job_JobStarted(object sender, EventArgs e) { 245 startJobSem.Release(); 239 246 } 240 247
Note: See TracChangeset
for help on using the changeset viewer.