diff options
author | Diva Canto | 2009-10-09 19:16:03 -0700 |
---|---|---|
committer | Diva Canto | 2009-10-09 19:16:03 -0700 |
commit | 3f78ff6ee0837c0179be5f43d485d9ca23ee454b (patch) | |
tree | 38f609ecfca46c6b924c74552292b925179f04e6 /OpenSim | |
parent | A slight improvement on name fetching -- using the local name cache, since it... (diff) | |
download | opensim-SC-3f78ff6ee0837c0179be5f43d485d9ca23ee454b.zip opensim-SC-3f78ff6ee0837c0179be5f43d485d9ca23ee454b.tar.gz opensim-SC-3f78ff6ee0837c0179be5f43d485d9ca23ee454b.tar.bz2 opensim-SC-3f78ff6ee0837c0179be5f43d485d9ca23ee454b.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPClientCollection.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClientCollection.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClientCollection.cs index 784426f..dbb9861 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClientCollection.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClientCollection.cs | |||
@@ -247,16 +247,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
247 | 247 | ||
248 | ////return success; | 248 | ////return success; |
249 | 249 | ||
250 | //lock (m_sync) | 250 | lock (m_sync) |
251 | // return Dictionary2.TryGetValue(key, out value); | ||
252 | |||
253 | try | ||
254 | { | ||
255 | return Dictionary2.TryGetValue(key, out value); | 251 | return Dictionary2.TryGetValue(key, out value); |
256 | } | 252 | |
257 | catch { } | 253 | //try |
258 | value = null; | 254 | //{ |
259 | return false; | 255 | // return Dictionary2.TryGetValue(key, out value); |
256 | //} | ||
257 | //catch { } | ||
258 | //value = null; | ||
259 | //return false; | ||
260 | 260 | ||
261 | } | 261 | } |
262 | 262 | ||