- Timestamp:
- 06/04/20 15:55:13 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
/trunk merged: 17574-17576,17579-17581,17583-17585
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Services.Hive.JanitorService
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Services.Hive.JanitorService merged: 17574
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Services.Hive.JanitorService/3.3/JanitorService.cs
r17226 r17586 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.