From: Mike Krinkin Date: Thu, 16 Apr 2015 14:20:49 +0000 (+0300) Subject: Fix spelling and spaces. X-Git-Tag: v2.1.0~249^2~5^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e2464e6d41d4902feedf9e2e6c6016fde7350d2f;p=libcds.git Fix spelling and spaces. --- diff --git a/cds/algo/atomic.h b/cds/algo/atomic.h index 1d3cd243..92bb48d9 100644 --- a/cds/algo/atomic.h +++ b/cds/algo/atomic.h @@ -187,7 +187,7 @@ namespace cds { {} /// Returns current value of the counter - counter_type value(atomics::memory_order order = atomics::memory_order_relaxed) const + counter_type value(atomics::memory_order order = atomics::memory_order_relaxed) const { return m_Counter.load( order ); } @@ -199,13 +199,13 @@ namespace cds { } /// Returns underlying atomic interface - atomic_type& getAtomic() + atomic_type& getAtomic() { return m_Counter; } /// Returns underlying atomic interface (const) - const atomic_type& getAtomic() const + const atomic_type& getAtomic() const { return m_Counter; } @@ -264,7 +264,7 @@ namespace cds { typedef size_t counter_type ; ///< Counter type public: /// Returns 0 - counter_type value(atomics::memory_order /*order*/ = atomics::memory_order_relaxed) const + counter_type value(atomics::memory_order /*order*/ = atomics::memory_order_relaxed) const { return 0; } diff --git a/cds/intrusive/details/split_list_base.h b/cds/intrusive/details/split_list_base.h index cef83734..cddfb628 100644 --- a/cds/intrusive/details/split_list_base.h +++ b/cds/intrusive/details/split_list_base.h @@ -418,7 +418,7 @@ namespace cds { namespace intrusive { { metrics m; - // Calculate m_nSegmentSize and m_nSegmentCount by nItemCount + // Calculate m_nSegmentSize and m_nSegmentCount by nItemCount m.nLoadFactor = nLoadFactor > 0 ? nLoadFactor : 1; size_t nBucketCount = (size_t)( ((float) nItemCount) / m.nLoadFactor ); diff --git a/cds/intrusive/split_list.h b/cds/intrusive/split_list.h index d67ab64d..4a560c57 100644 --- a/cds/intrusive/split_list.h +++ b/cds/intrusive/split_list.h @@ -415,7 +415,6 @@ namespace cds { namespace intrusive { // In this point, we must wait while nBucket is empty. // The compiler can decide that waiting loop can be "optimized" (stripped) // To prevent this situation, we use waiting on volatile bucket_head_ptr pointer. - // m_Stat.onBucketInitContenton(); back_off bkoff; while ( true ) { @@ -458,7 +457,7 @@ namespace cds { namespace intrusive { m_Buckets.bucket( 0, pNode ); } - void inc_item_count() + void inc_item_count() { size_t sz = m_nBucketCountLog2.load(memory_model::memory_order_relaxed); if ( ( ++m_ItemCounter >> sz ) > m_Buckets.load_factor() && ((size_t)(1 << sz )) < m_Buckets.capacity() ) @@ -583,7 +582,7 @@ namespace cds { namespace intrusive { /// Initialize split-ordered list of default capacity /** The default capacity is defined in bucket table constructor. - See \p split_list::expandable_bucket_table, \p split_list::static_ducket_table + See \p split_list::expandable_bucket_table, \p split_list::static_bucket_table which selects by \p split_list::dynamic_bucket_table option. */ SplitListSet()