- Timestamp:
- 01/17/11 20:58:36 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs
r5314 r5315 38 38 /// </summary> 39 39 public class Core : MarshalByRefObject { 40 41 //TODO: this class should be a singleton; there is only one instance, the reference is meanwhile save in TheCore 42 public static Core TheCore; 43 40 44 public static bool abortRequested { get; set; } 41 45 private Semaphore waitShutdownSem = new Semaphore(0, 1); … … 62 66 63 67 public Core() { 68 TheCore = this; 64 69 } 65 70 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveCommunicationService.cs
r5314 r5315 28 28 public class SlaveCommunicationService : ISlaveCommunication { 29 29 private static List<ISlaveCommunicationCallbacks> subscribers = new List<ISlaveCommunicationCallbacks>(); 30 public Core SlaveCore { get; set; }31 32 30 33 31 public bool Subscribe() { … … 86 84 87 85 public void Restart() { 88 SlaveCore.Restart();86 Core.TheCore.Restart(); 89 87 } 90 88 public void HardPause() { 91 SlaveCore.HardPause();89 Core.TheCore.HardPause(); 92 90 } 93 91 94 92 public void SoftPause() { 95 SlaveCore.SoftPause();93 Core.TheCore.SoftPause(); 96 94 } 97 95 98 96 public void ShutdownSlave() { 99 SlaveCore.Shutdown();97 Core.TheCore.Shutdown(); 100 98 } 101 99 }
Note: See TracChangeset
for help on using the changeset viewer.