mirror of
https://github.com/opensim/opensim.git
synced 2026-07-15 03:55:47 +08:00
Add IScriptInstance.EventsQueued to match EventsProcessed instead of asking callers to lock and directly inspect the EventQueue
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user