Add IScriptInstance.EventsQueued to match EventsProcessed instead of asking callers to lock and directly inspect the EventQueue

This commit is contained in:
Justin Clark-Casey (justincc)
2012-12-05 23:33:48 +00:00
parent 652f4bcb42
commit 5ba99cbf55
3 changed files with 15 additions and 4 deletions

View File

@@ -173,6 +173,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
public Queue EventQueue { get; private set; }
public long EventsQueued
{
get
{
lock (EventQueue)
return EventQueue.Count;
}
}
public long EventsProcessed { get; private set; }
public int StartParam { get; set; }