Changeset 7125 for trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveJobs
- Timestamp:
- 12/05/11 16:45:27 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveJobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveJobs/HiveTask.cs
r6994 r7125 238 238 } 239 239 240 public virtual void AddChildHive Job(HiveTask hiveJob) {240 public virtual void AddChildHiveTask(HiveTask hiveTask) { 241 241 childHiveTasksLock.EnterWriteLock(); 242 242 try { 243 this.childHiveTasks.Add(hive Job);243 this.childHiveTasks.Add(hiveTask); 244 244 } 245 245 finally { childHiveTasksLock.ExitWriteLock(); } -
trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveJobs/OptimizerHiveTask.cs
r6976 r7125 136 136 } 137 137 } 138 } 139 finally { childHiveTasksLock.ExitWriteLock(); } 138 } finally { childHiveTasksLock.ExitWriteLock(); } 140 139 } 141 140 } … … 152 151 } 153 152 } 154 } 155 finally { childHiveTasksLock.ExitWriteLock(); } 153 } finally { childHiveTasksLock.ExitWriteLock(); } 156 154 } 157 155 } … … 163 161 this.childHiveTasks.Remove(this.GetChildByOptimizer(item.Value)); 164 162 } 165 } 166 finally { childHiveTasksLock.ExitWriteLock(); } 163 } finally { childHiveTasksLock.ExitWriteLock(); } 167 164 } 168 165 } … … 174 171 this.childHiveTasks.Remove(this.GetChildByOptimizer(item.Value)); 175 172 } 176 } 177 finally { childHiveTasksLock.ExitWriteLock(); } 173 } finally { childHiveTasksLock.ExitWriteLock(); } 178 174 } 179 175 } … … 205 201 child.syncTasksWithOptimizers = true; 206 202 } 207 } 208 finally { childHiveTasksLock.ExitReadLock(); } 203 } finally { childHiveTasksLock.ExitReadLock(); } 209 204 syncTasksWithOptimizers = true; 210 205 } … … 268 263 child.SetIndexInParentOptimizerList(this); 269 264 } 270 } 271 finally { childHiveTasksLock.ExitReadLock(); } 272 } 273 274 public override void AddChildHiveJob(HiveTask hiveJob) { 275 base.AddChildHiveJob(hiveJob); 276 var optimizerHiveJob = (OptimizerHiveTask)hiveJob; 265 } finally { childHiveTasksLock.ExitReadLock(); } 266 } 267 268 public override void AddChildHiveTask(HiveTask hiveTask) { 269 base.AddChildHiveTask(hiveTask); 270 var optimizerHiveJob = (OptimizerHiveTask)hiveTask; 277 271 syncTasksWithOptimizers = false; 278 272 if (this.ItemTask != null && optimizerHiveJob.ItemTask != null) { … … 339 333 } 340 334 return null; 341 } 342 finally { childHiveTasksLock.ExitReadLock(); } 335 } finally { childHiveTasksLock.ExitReadLock(); } 343 336 } 344 337 … … 351 344 } 352 345 return null; 353 } 354 finally { childHiveTasksLock.ExitReadLock(); } 346 } finally { childHiveTasksLock.ExitReadLock(); } 355 347 } 356 348
Note: See TracChangeset
for help on using the changeset viewer.