aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Instance
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-12-05 23:33:48 +0000
committerJustin Clark-Casey (justincc)2012-12-05 23:33:48 +0000
commit5ba99cbf554d965a6b11114a602c5317ca8f5ebd (patch)
tree70243117bf36f5f2bee502faafc63db06ec78a73 /OpenSim/Region/ScriptEngine/Shared/Instance
parentFor now, sort "show scripts" output in descending order sorted by events proc... (diff)
downloadopensim-SC-5ba99cbf554d965a6b11114a602c5317ca8f5ebd.zip
opensim-SC-5ba99cbf554d965a6b11114a602c5317ca8f5ebd.tar.gz
opensim-SC-5ba99cbf554d965a6b11114a602c5317ca8f5ebd.tar.bz2
opensim-SC-5ba99cbf554d965a6b11114a602c5317ca8f5ebd.tar.xz
Add IScriptInstance.EventsQueued to match EventsProcessed instead of asking callers to lock and directly inspect the EventQueue
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 5bfe97a..8e81e9f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -173,6 +173,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
173 173
174 public Queue EventQueue { get; private set; } 174 public Queue EventQueue { get; private set; }
175 175
176 public long EventsQueued
177 {
178 get
179 {
180 lock (EventQueue)
181 return EventQueue.Count;
182 }
183 }
184
176 public long EventsProcessed { get; private set; } 185 public long EventsProcessed { get; private set; }
177 186
178 public int StartParam { get; set; } 187 public int StartParam { get; set; }