Slight variation on the locking scheme: now locking always, except the ForEach, which gets a copy of the Array. I think the ForEach was the big gorilla.

prioritization
Diva Canto 2009-10-09 19:16:03 -07:00
parent f29bd8036d
commit 3f78ff6ee0
1 changed files with 9 additions and 9 deletions

View File

@ -247,16 +247,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
////return success; ////return success;
//lock (m_sync) lock (m_sync)
// return Dictionary2.TryGetValue(key, out value);
try
{
return Dictionary2.TryGetValue(key, out value); return Dictionary2.TryGetValue(key, out value);
}
catch { } //try
value = null; //{
return false; // return Dictionary2.TryGetValue(key, out value);
//}
//catch { }
//value = null;
//return false;
} }