mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs OpenSim/Region/Framework/Scenes/SceneObjectPart.cs OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
This commit is contained in:
@@ -78,7 +78,13 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
private IConfigSource m_ConfigSource = null;
|
||||
private ICompiler m_Compiler;
|
||||
private int m_MinThreads;
|
||||
private int m_MaxThreads ;
|
||||
private int m_MaxThreads;
|
||||
|
||||
/// <summary>
|
||||
/// Amount of time to delay before starting.
|
||||
/// </summary>
|
||||
private int m_StartDelay;
|
||||
|
||||
private int m_IdleTimeout;
|
||||
private int m_StackSize;
|
||||
private int m_SleepTime;
|
||||
@@ -299,6 +305,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
m_MaxThreads = m_ScriptConfig.GetInt("MaxThreads", 100);
|
||||
m_IdleTimeout = m_ScriptConfig.GetInt("IdleTimeout", 60);
|
||||
string priority = m_ScriptConfig.GetString("Priority", "BelowNormal");
|
||||
m_StartDelay = m_ScriptConfig.GetInt("StartDelay", 15000);
|
||||
m_MaxScriptQueue = m_ScriptConfig.GetInt("MaxScriptEventQueue",300);
|
||||
m_StackSize = m_ScriptConfig.GetInt("ThreadStackSize", 262144);
|
||||
m_SleepTime = m_ScriptConfig.GetInt("MaintenanceInterval", 10) * 1000;
|
||||
@@ -957,7 +964,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
{
|
||||
// This delay exists to stop mono problems where script compilation and startup would stop the sim
|
||||
// working properly for the session.
|
||||
System.Threading.Thread.Sleep(15000);
|
||||
System.Threading.Thread.Sleep(m_StartDelay);
|
||||
}
|
||||
|
||||
object[] o;
|
||||
@@ -1768,12 +1775,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
public string GetXMLState(UUID itemID)
|
||||
{
|
||||
// m_log.DebugFormat("[XEngine]: Getting XML state for {0}", itemID);
|
||||
// m_log.DebugFormat("[XEngine]: Getting XML state for script instance {0}", itemID);
|
||||
|
||||
IScriptInstance instance = GetInstance(itemID);
|
||||
if (instance == null)
|
||||
{
|
||||
// m_log.DebugFormat("[XEngine]: Found no script for {0}, returning empty string", itemID);
|
||||
// m_log.DebugFormat("[XEngine]: Found no script instance for {0}, returning empty string", itemID);
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -1848,7 +1855,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
tfs.Read(tdata, 0, tdata.Length);
|
||||
}
|
||||
|
||||
assem = new System.Text.ASCIIEncoding().GetString(tdata);
|
||||
assem = Encoding.ASCII.GetString(tdata);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user