Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/05/11 16:45:27 (13 years ago)
Author:
ascheibe
Message:

#1672

  • removed magic numbers for upload retries
  • speed up job downloading by placing deserializing/downloading semaphores correctly
  • increased max. number of parallel downloads/deserializations
  • added more status messages when downloading to make it more clear what's actually happening
  • renamed some variables
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  
    238238    }
    239239
    240     public virtual void AddChildHiveJob(HiveTask hiveJob) {
     240    public virtual void AddChildHiveTask(HiveTask hiveTask) {
    241241      childHiveTasksLock.EnterWriteLock();
    242242      try {
    243         this.childHiveTasks.Add(hiveJob);
     243        this.childHiveTasks.Add(hiveTask);
    244244      }
    245245      finally { childHiveTasksLock.ExitWriteLock(); }
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveJobs/OptimizerHiveTask.cs

    r6976 r7125  
    136136            }
    137137          }
    138         }
    139         finally { childHiveTasksLock.ExitWriteLock(); }
     138        } finally { childHiveTasksLock.ExitWriteLock(); }
    140139      }
    141140    }
     
    152151            }
    153152          }
    154         }
    155         finally { childHiveTasksLock.ExitWriteLock(); }
     153        } finally { childHiveTasksLock.ExitWriteLock(); }
    156154      }
    157155    }
     
    163161            this.childHiveTasks.Remove(this.GetChildByOptimizer(item.Value));
    164162          }
    165         }
    166         finally { childHiveTasksLock.ExitWriteLock(); }
     163        } finally { childHiveTasksLock.ExitWriteLock(); }
    167164      }
    168165    }
     
    174171            this.childHiveTasks.Remove(this.GetChildByOptimizer(item.Value));
    175172          }
    176         }
    177         finally { childHiveTasksLock.ExitWriteLock(); }
     173        } finally { childHiveTasksLock.ExitWriteLock(); }
    178174      }
    179175    }
     
    205201          child.syncTasksWithOptimizers = true;
    206202        }
    207       }
    208       finally { childHiveTasksLock.ExitReadLock(); }
     203      } finally { childHiveTasksLock.ExitReadLock(); }
    209204      syncTasksWithOptimizers = true;
    210205    }
     
    268263          child.SetIndexInParentOptimizerList(this);
    269264        }
    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;
    277271      syncTasksWithOptimizers = false;
    278272      if (this.ItemTask != null && optimizerHiveJob.ItemTask != null) {
     
    339333        }
    340334        return null;
    341       }
    342       finally { childHiveTasksLock.ExitReadLock(); }
     335      } finally { childHiveTasksLock.ExitReadLock(); }
    343336    }
    344337
     
    351344        }
    352345        return null;
    353       }
    354       finally { childHiveTasksLock.ExitReadLock(); }
     346      } finally { childHiveTasksLock.ExitReadLock(); }
    355347    }
    356348
Note: See TracChangeset for help on using the changeset viewer.