mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
last round of warning squashing. calling it a day now.
This commit is contained in:
@@ -3122,7 +3122,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
|
||||
}
|
||||
|
||||
double angle = 2 * Math.Acos(rot.s);
|
||||
// double angle = 2 * Math.Acos(rot.s);
|
||||
double s = Math.Sqrt(1 - rot.s * rot.s);
|
||||
if (s < 0.001)
|
||||
{
|
||||
@@ -3960,7 +3960,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
{
|
||||
int index = str.IndexOf(delimiters[i].ToString());
|
||||
bool found = index != -1;
|
||||
if (found && String.Empty != delimiters[i])
|
||||
if (found && String.Empty != (string)delimiters[i])
|
||||
{
|
||||
if ((cindex > index) || (cindex == -1))
|
||||
{
|
||||
@@ -4049,7 +4049,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
|
||||
private String[] GetNotecardLines(string name)
|
||||
{
|
||||
bool found = false;
|
||||
// bool found = false;
|
||||
int notecardIndex = 0;
|
||||
String[] notecardLines = { "0" };
|
||||
notecardLines[0] = String.Empty;
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||
}
|
||||
}
|
||||
|
||||
private ScriptEngine lastScriptEngine; // Keep track of what ScriptEngine instance we are at so we can give exception
|
||||
// private ScriptEngine lastScriptEngine; // Keep track of what ScriptEngine instance we are at so we can give exception
|
||||
/// <summary>
|
||||
/// A thread should run in this loop and check all running scripts
|
||||
/// </summary>
|
||||
@@ -171,7 +171,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||
//{
|
||||
foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines))
|
||||
{
|
||||
lastScriptEngine = m_ScriptEngine;
|
||||
// lastScriptEngine = m_ScriptEngine;
|
||||
// Re-reading config every x seconds
|
||||
if (MaintenanceLoopTicks_Other_Count >= MaintenanceLoopTicks_Other)
|
||||
{
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||
|
||||
private Thread scriptLoadUnloadThread;
|
||||
private static Thread staticScriptLoadUnloadThread;
|
||||
private int scriptLoadUnloadThread_IdleSleepms;
|
||||
// private int scriptLoadUnloadThread_IdleSleepms;
|
||||
private Queue<LUStruct> LUQueue = new Queue<LUStruct>();
|
||||
private static bool PrivateThread;
|
||||
private int LoadUnloadMaxQueueSize;
|
||||
@@ -100,7 +100,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||
|
||||
public void ReadConfig()
|
||||
{
|
||||
scriptLoadUnloadThread_IdleSleepms = m_scriptEngine.ScriptConfigSource.GetInt("ScriptLoadUnloadLoopms", 30);
|
||||
// scriptLoadUnloadThread_IdleSleepms = m_scriptEngine.ScriptConfigSource.GetInt("ScriptLoadUnloadLoopms", 30);
|
||||
// TODO: Requires sharing of all ScriptManagers to single thread
|
||||
PrivateThread = true; // m_scriptEngine.ScriptConfigSource.GetBoolean("PrivateScriptLoadUnloadThread", false);
|
||||
LoadUnloadMaxQueueSize = m_scriptEngine.ScriptConfigSource.GetInt("LoadUnloadMaxQueueSize", 100);
|
||||
@@ -245,7 +245,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||
|
||||
#region Start/Stop/Reset script
|
||||
|
||||
private readonly Object startStopLock = new Object();
|
||||
// private readonly Object startStopLock = new Object();
|
||||
|
||||
/// <summary>
|
||||
/// Fetches, loads and hooks up a script to an objects events
|
||||
|
||||
Reference in New Issue
Block a user