mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
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.
This commit is contained in:
@@ -247,16 +247,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
////return success;
|
||||
|
||||
//lock (m_sync)
|
||||
// return Dictionary2.TryGetValue(key, out value);
|
||||
|
||||
try
|
||||
{
|
||||
lock (m_sync)
|
||||
return Dictionary2.TryGetValue(key, out value);
|
||||
}
|
||||
catch { }
|
||||
value = null;
|
||||
return false;
|
||||
|
||||
//try
|
||||
//{
|
||||
// return Dictionary2.TryGetValue(key, out value);
|
||||
//}
|
||||
//catch { }
|
||||
//value = null;
|
||||
//return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user