diff --git a/.gitignore b/.gitignore
index fae7509131..91e9be50cf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -98,3 +98,5 @@ OpenSim/Region/ScriptEngine/test-results/
OpenSim/Tests/Common/test-results/
OpenSim/Tests/test-results/
test-results/
+doc/html
+doc/doxygen.error.log
diff --git a/.nant/local.include b/.nant/local.include
index 5185717cbc..2339ce827b 100644
--- a/.nant/local.include
+++ b/.nant/local.include
@@ -43,6 +43,7 @@
+
diff --git a/OpenSim/Data/Null/NullRegionData.cs b/OpenSim/Data/Null/NullRegionData.cs
index b4d701af50..f707d98cd2 100644
--- a/OpenSim/Data/Null/NullRegionData.cs
+++ b/OpenSim/Data/Null/NullRegionData.cs
@@ -113,11 +113,14 @@ namespace OpenSim.Data.Null
// Find region data
List ret = new List();
- foreach (RegionData r in m_regionData.Values)
+ lock (m_regionData)
{
-// m_log.DebugFormat("[NULL REGION DATA]: comparing {0} to {1}", cleanName, r.RegionName.ToLower());
+ foreach (RegionData r in m_regionData.Values)
+ {
+ // m_log.DebugFormat("[NULL REGION DATA]: comparing {0} to {1}", cleanName, r.RegionName.ToLower());
if (queryMatch(r.RegionName.ToLower()))
ret.Add(r);
+ }
}
if (ret.Count > 0)
@@ -133,10 +136,13 @@ namespace OpenSim.Data.Null
List ret = new List();
- foreach (RegionData r in m_regionData.Values)
+ lock (m_regionData)
{
- if (r.posX == posX && r.posY == posY)
- ret.Add(r);
+ foreach (RegionData r in m_regionData.Values)
+ {
+ if (r.posX == posX && r.posY == posY)
+ ret.Add(r);
+ }
}
if (ret.Count > 0)
@@ -150,8 +156,11 @@ namespace OpenSim.Data.Null
if (m_useStaticInstance && Instance != this)
return Instance.Get(regionID, scopeID);
- if (m_regionData.ContainsKey(regionID))
- return m_regionData[regionID];
+ lock (m_regionData)
+ {
+ if (m_regionData.ContainsKey(regionID))
+ return m_regionData[regionID];
+ }
return null;
}
@@ -163,10 +172,13 @@ namespace OpenSim.Data.Null
List ret = new List();
- foreach (RegionData r in m_regionData.Values)
+ lock (m_regionData)
{
- if (r.posX >= startX && r.posX <= endX && r.posY >= startY && r.posY <= endY)
- ret.Add(r);
+ foreach (RegionData r in m_regionData.Values)
+ {
+ if (r.posX >= startX && r.posX <= endX && r.posY >= startY && r.posY <= endY)
+ ret.Add(r);
+ }
}
return ret;
@@ -180,7 +192,10 @@ namespace OpenSim.Data.Null
// m_log.DebugFormat(
// "[NULL REGION DATA]: Storing region {0} {1}, scope {2}", data.RegionName, data.RegionID, data.ScopeID);
- m_regionData[data.RegionID] = data;
+ lock (m_regionData)
+ {
+ m_regionData[data.RegionID] = data;
+ }
return true;
}
@@ -190,10 +205,13 @@ namespace OpenSim.Data.Null
if (m_useStaticInstance && Instance != this)
return Instance.SetDataItem(regionID, item, value);
- if (!m_regionData.ContainsKey(regionID))
- return false;
+ lock (m_regionData)
+ {
+ if (!m_regionData.ContainsKey(regionID))
+ return false;
- m_regionData[regionID].Data[item] = value;
+ m_regionData[regionID].Data[item] = value;
+ }
return true;
}
@@ -205,10 +223,13 @@ namespace OpenSim.Data.Null
// m_log.DebugFormat("[NULL REGION DATA]: Deleting region {0}", regionID);
- if (!m_regionData.ContainsKey(regionID))
- return false;
+ lock (m_regionData)
+ {
+ if (!m_regionData.ContainsKey(regionID))
+ return false;
- m_regionData.Remove(regionID);
+ m_regionData.Remove(regionID);
+ }
return true;
}
@@ -238,10 +259,13 @@ namespace OpenSim.Data.Null
List ret = new List();
- foreach (RegionData r in m_regionData.Values)
+ lock (m_regionData)
{
- if ((Convert.ToInt32(r.Data["flags"]) & regionFlags) != 0)
- ret.Add(r);
+ foreach (RegionData r in m_regionData.Values)
+ {
+ if ((Convert.ToInt32(r.Data["flags"]) & regionFlags) != 0)
+ ret.Add(r);
+ }
}
return ret;
diff --git a/OpenSim/Framework/Console/ConsoleDisplayTable.cs b/OpenSim/Framework/Console/ConsoleDisplayTable.cs
index c620dfe10c..711a337f81 100644
--- a/OpenSim/Framework/Console/ConsoleDisplayTable.cs
+++ b/OpenSim/Framework/Console/ConsoleDisplayTable.cs
@@ -56,7 +56,7 @@ namespace OpenSim.Framework.Console
public List Rows { get; private set; }
///
- /// Number of spaces to indent the table.
+ /// Number of spaces to indent the whole table.
///
public int Indent { get; set; }
@@ -84,7 +84,7 @@ namespace OpenSim.Framework.Console
Columns.Add(new ConsoleDisplayTableColumn(name, width));
}
- public void AddRow(params string[] cells)
+ public void AddRow(params object[] cells)
{
Rows.Add(new ConsoleDisplayTableRow(cells));
}
@@ -113,7 +113,8 @@ namespace OpenSim.Framework.Console
for (int i = 0; i < Columns.Count; i++)
{
- formatSb.Append(' ', TableSpacing);
+ if (i != 0)
+ formatSb.Append(' ', TableSpacing);
// Can only do left formatting for now
formatSb.AppendFormat("{{{0},-{1}}}", i, Columns[i].Width);
@@ -139,16 +140,16 @@ namespace OpenSim.Framework.Console
public struct ConsoleDisplayTableRow
{
- public List Cells { get; private set; }
+ public List