Changeset 17574 for trunk/HeuristicLab.Services.Hive.JanitorService
- Timestamp:
- 05/29/20 13:28:25 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Services.Hive.JanitorService/3.3/JanitorService.cs
r17180 r17574 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.