aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-05-04 23:03:33 +0100
committerJustin Clark-Casey (justincc)2012-05-04 23:03:33 +0100
commite18686528ea09d72dd75da341da7bbb6f1fad5aa (patch)
treed1a9c93270ac50f36ed3aa2997e950c9091098f8 /OpenSim
parentDon't try and update the access time of a file that is actively being cached. (diff)
downloadopensim-SC-e18686528ea09d72dd75da341da7bbb6f1fad5aa.zip
opensim-SC-e18686528ea09d72dd75da341da7bbb6f1fad5aa.tar.gz
opensim-SC-e18686528ea09d72dd75da341da7bbb6f1fad5aa.tar.bz2
opensim-SC-e18686528ea09d72dd75da341da7bbb6f1fad5aa.tar.xz
Use the more efficient HashSet instead of List for FlotasmAssetCache.m_CurrentlyWriting
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index a25976d..dd6026b 100644
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -83,7 +83,7 @@ namespace Flotsam.RegionModules.AssetCache
83 private Dictionary<string, ManualResetEvent> m_CurrentlyWriting = new Dictionary<string, ManualResetEvent>(); 83 private Dictionary<string, ManualResetEvent> m_CurrentlyWriting = new Dictionary<string, ManualResetEvent>();
84 private int m_WaitOnInprogressTimeout = 3000; 84 private int m_WaitOnInprogressTimeout = 3000;
85#else 85#else
86 private List<string> m_CurrentlyWriting = new List<string>(); 86 private HashSet<string> m_CurrentlyWriting = new HashSet<string>();
87#endif 87#endif
88 88
89 private bool m_FileCacheEnabled = true; 89 private bool m_FileCacheEnabled = true;