mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Decouple AsyncCommands from XEngine and the script instance. Make
all methods needed outside the API ststic. Async command processing is now wholly internal to the API. This sets the stage for the next convergence step.
This commit is contained in:
@@ -76,7 +76,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
#pragma warning restore 414
|
||||
private int m_EventLimit;
|
||||
private bool m_KillTimedOutScripts;
|
||||
private AsyncCommandManager m_AsyncCommands;
|
||||
bool m_firstStart = true;
|
||||
|
||||
private static List<XEngine> m_ScriptEngines =
|
||||
@@ -142,11 +141,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
get { return m_ScriptConfig; }
|
||||
}
|
||||
|
||||
public Object AsyncCommands
|
||||
{
|
||||
get { return (Object)m_AsyncCommands; }
|
||||
}
|
||||
|
||||
//
|
||||
// IRegionModule functions
|
||||
//
|
||||
@@ -239,8 +233,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
m_Scene.EventManager.OnStopScript += OnStopScript;
|
||||
m_Scene.EventManager.OnShutdown += OnShutdown;
|
||||
|
||||
m_AsyncCommands = new AsyncCommandManager(this);
|
||||
|
||||
if (m_SleepTime > 0)
|
||||
{
|
||||
m_ThreadPool.QueueWorkItem(new WorkItemCallback(this.DoMaintenance),
|
||||
@@ -574,8 +566,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
if (!m_Scripts.ContainsKey(itemID))
|
||||
return;
|
||||
|
||||
m_AsyncCommands.RemoveScript(localID, itemID);
|
||||
|
||||
IScriptInstance instance=m_Scripts[itemID];
|
||||
m_Scripts.Remove(itemID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user