- Timestamp:
- 01/27/21 14:10:56 (4 years ago)
- Location:
- branches/3040_VectorBasedGP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP
- Property svn:mergeinfo changed
-
branches/3040_VectorBasedGP/HeuristicLab.Services.Hive.JanitorService
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Services.Hive.JanitorService (added) merged: 17574
- Property svn:mergeinfo changed
-
branches/3040_VectorBasedGP/HeuristicLab.Services.Hive.JanitorService/3.3/JanitorService.cs
r17180 r17825 26 26 public partial class JanitorService : ServiceBase { 27 27 private HiveJanitor janitor; 28 private Thread janitorCleanupThread; 29 private Thread janitorGenerateStatisticsThread; 28 private Thread janitorThread; 30 29 31 30 public JanitorService() { … … 36 35 janitor = new HiveJanitor(); 37 36 38 janitorCleanupThread = new Thread(janitor.RunCleanup) { 39 IsBackground = true 40 }; 41 janitorGenerateStatisticsThread = new Thread(janitor.RunGenerateStatistics) { 37 janitorThread = new Thread(janitor.Run) { 42 38 IsBackground = true 43 39 }; 44 40 45 janitorCleanupThread.Start(); 46 janitorGenerateStatisticsThread.Start(); 41 janitorThread.Start(); 47 42 } 48 43 49 44 protected override void OnStop() { 50 45 janitor.StopJanitor(); 51 janitorCleanupThread.Join(); 52 janitorGenerateStatisticsThread.Join(); 46 janitorThread.Join(); 53 47 } 54 48 }
Note: See TracChangeset
for help on using the changeset viewer.