- Timestamp:
- 08/30/10 13:47:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/HeartbeatManager.cs
r4337 r4342 108 108 109 109 } // lock 110 try {111 heartBeatThreadIsSleepingLock.EnterWriteLock();112 heartBeatThreadIsSleeping = true;113 heartBeatThreadIsSleepingLock.ExitWriteLock();114 115 Thread.Sleep(Interval);116 117 heartBeatThreadIsSleepingLock.EnterWriteLock();118 heartBeatThreadIsSleeping = false;119 heartBeatThreadIsSleepingLock.ExitWriteLock();120 }121 catch (ThreadInterruptedException e) {122 Logger.Debug("Heartbeat sleep interrupted");123 }124 110 } 125 111 catch (Exception e) { 126 112 Logger.Error("Heartbeat Thread failed badly: " + e.Message); 113 } 114 115 try { 116 heartBeatThreadIsSleepingLock.EnterWriteLock(); 117 heartBeatThreadIsSleeping = true; 118 heartBeatThreadIsSleepingLock.ExitWriteLock(); 119 120 Thread.Sleep(Interval); 121 122 heartBeatThreadIsSleepingLock.EnterWriteLock(); 123 heartBeatThreadIsSleeping = false; 124 heartBeatThreadIsSleepingLock.ExitWriteLock(); 125 } 126 catch (ThreadInterruptedException e) { 127 Logger.Debug("Heartbeat sleep interrupted"); 127 128 } 128 129 } // while
Note: See TracChangeset
for help on using the changeset viewer.