aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Watchdog.cs
diff options
context:
space:
mode:
authorMelanie2011-11-17 19:15:41 +0100
committerMelanie2011-11-17 19:15:41 +0100
commitd1c80efd41d914ed91a51d129e8f08ad749e3397 (patch)
tree61aa8dbef7e0afa3f3a2c2eaa7f3ae3d4d8ef712 /OpenSim/Framework/Watchdog.cs
parentForce a sim exit when hearbeat isn't restarting successfully (diff)
parentMerge branch 'master' into bigmerge (diff)
downloadopensim-SC-d1c80efd41d914ed91a51d129e8f08ad749e3397.zip
opensim-SC-d1c80efd41d914ed91a51d129e8f08ad749e3397.tar.gz
opensim-SC-d1c80efd41d914ed91a51d129e8f08ad749e3397.tar.bz2
opensim-SC-d1c80efd41d914ed91a51d129e8f08ad749e3397.tar.xz
Merge branch 'bigmerge' of ssh://3dhosting.de/var/git/careminster into bigmerge
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Watchdog.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs
index 4847675..fa94109 100644
--- a/OpenSim/Framework/Watchdog.cs
+++ b/OpenSim/Framework/Watchdog.cs
@@ -48,6 +48,18 @@ namespace OpenSim.Framework
48 public class ThreadWatchdogInfo 48 public class ThreadWatchdogInfo
49 { 49 {
50 public Thread Thread { get; private set; } 50 public Thread Thread { get; private set; }
51
52 /// <summary>
53 /// Approximate tick when this thread was started.
54 /// </summary>
55 /// <remarks>
56 /// Not terribly good since this quickly wraps around.
57 /// </remarks>
58 public int FirstTick { get; private set; }
59
60 /// <summary>
61 /// First time this heartbeat update was invoked
62 /// </summary>
51 public int LastTick { get; set; } 63 public int LastTick { get; set; }
52 64
53 /// <summary> 65 /// <summary>
@@ -64,7 +76,8 @@ namespace OpenSim.Framework
64 { 76 {
65 Thread = thread; 77 Thread = thread;
66 Timeout = timeout; 78 Timeout = timeout;
67 LastTick = Environment.TickCount & Int32.MaxValue; 79 FirstTick = Environment.TickCount & Int32.MaxValue;
80 LastTick = FirstTick;
68 } 81 }
69 } 82 }
70 83