From ee205e7e812e170f670e690a4e0fa9caa652f226 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Thu, 1 Oct 2009 01:00:09 +0900 Subject: Formatting cleanup. --- OpenSim/Framework/CnmMemoryCache.cs | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'OpenSim/Framework/CnmMemoryCache.cs') diff --git a/OpenSim/Framework/CnmMemoryCache.cs b/OpenSim/Framework/CnmMemoryCache.cs index db91801..92af331 100644 --- a/OpenSim/Framework/CnmMemoryCache.cs +++ b/OpenSim/Framework/CnmMemoryCache.cs @@ -70,7 +70,7 @@ namespace OpenSim.Framework /// /// How many operations between time checks. - /// + /// private const int DefaultOperationsBetweenTimeChecks = 40; /// @@ -168,7 +168,7 @@ namespace OpenSim.Framework private int m_version; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// public CnmMemoryCache() : this(DefaultMaxSize) @@ -277,7 +277,7 @@ namespace OpenSim.Framework /// protected virtual void AddToNewGeneration(int bucketIndex, TKey key, TValue value, long size) { - // Add to newest generation + // Add to newest generation if (!m_newGeneration.Set(bucketIndex, key, value, size)) { // Failed to add new generation @@ -311,7 +311,7 @@ namespace OpenSim.Framework /// Bucket index is remainder when element key's hash value is divided by bucket count. /// /// - /// For example: key's hash is 72, bucket count is 5, element's bucket index is 72 % 5 = 2. + /// For example: key's hash is 72, bucket count is 5, element's bucket index is 72 % 5 = 2. /// /// protected virtual int GetBucketIndex(TKey key) @@ -367,7 +367,7 @@ namespace OpenSim.Framework /// private void RecycleGenerations() { - // Rotate old generation to new generation, new generation to old generation + // Rotate old generation to new generation, new generation to old generation IGeneration temp = m_newGeneration; m_newGeneration = m_oldGeneration; m_newGeneration.Clear(); @@ -522,7 +522,7 @@ namespace OpenSim.Framework /// /// Index of first element's in element chain. /// - /// + /// /// -1 if there is no element in bucket; otherwise first element's index in the element chain. /// /// @@ -692,7 +692,7 @@ namespace OpenSim.Framework /// /// /// 0 if element is free; otherwise larger than 0. - /// + /// public long Size; /// @@ -771,7 +771,7 @@ namespace OpenSim.Framework /// /// /// The enumerator has reach end of collection or is not called. - /// + /// public KeyValuePair Current { get @@ -1405,10 +1405,10 @@ namespace OpenSim.Framework /// When adding an new element to that is limiting total size of elements, /// will remove less recently used elements until it can fit an new element. /// - /// + /// /// /// - /// + /// /// /// public bool IsSizeLimited @@ -1438,7 +1438,7 @@ namespace OpenSim.Framework } /// - /// Gets a value indicating whether elements stored to have limited inactivity time. + /// Gets a value indicating whether elements stored to have limited inactivity time. /// /// /// if the has a fixed total size of elements; @@ -1449,7 +1449,7 @@ namespace OpenSim.Framework /// or methods in , then element is automatically removed from /// the cache. Depending on implementation of the , some of the elements may /// stay longer in cache. - /// + /// /// /// /// @@ -1503,7 +1503,7 @@ namespace OpenSim.Framework /// /// /// - /// + /// public long MaxElementSize { get { return m_maxElementSize; } @@ -1517,7 +1517,7 @@ namespace OpenSim.Framework /// /// Maximal allowed total size for elements stored to . /// - /// + /// /// /// Normally size is total bytes used by elements in the cache. But it can be any other suitable unit of measure. /// @@ -1562,10 +1562,10 @@ namespace OpenSim.Framework /// When adding an new element to that is limiting total size of elements, /// will remove less recently used elements until it can fit an new element. /// - /// + /// /// /// - /// + /// /// /// public long Size @@ -1576,9 +1576,9 @@ namespace OpenSim.Framework /// /// Gets an object that can be used to synchronize access to the . /// - /// + /// /// An object that can be used to synchronize access to the . - /// + /// /// /// /// To get synchronized (thread safe) access to , use @@ -1630,7 +1630,7 @@ namespace OpenSim.Framework /// /// /// Depending on implementation, some of expired elements - /// may stay longer than in the cache. + /// may stay longer than in the cache. /// /// /// @@ -1810,7 +1810,7 @@ namespace OpenSim.Framework /// /// /// if the contains an element with - /// the specified key; otherwise, . + /// the specified key; otherwise, . /// /// /// The key whose to get. -- cgit v1.1