template <typename K, typename Predicate>
bool erase_with( K const& key, Predicate pred )
{
+ CDS_UNUSED( pred );
node_type * pNode = base_class::erase_with(key, cds::details::predicate_wrapper<node_type, Predicate, key_accessor>());
if ( pNode ) {
free_node( pNode );
template <typename K, typename Predicate, typename Func>
bool erase_with( K const& key, Predicate pred, Func f )
{
+ CDS_UNUSED( pred );
node_type * pNode = base_class::erase_with( key, cds::details::predicate_wrapper<node_type, Predicate, key_accessor>() );
if ( pNode ) {
f( pNode->m_val );
template <typename K, typename Predicate, typename Func>
bool find_with( K const& key, Predicate pred, Func f )
{
+ CDS_UNUSED( pred );
return base_class::find_with( key, cds::details::predicate_wrapper<node_type, Predicate, key_accessor>(),
[&f](node_type& item, K const& ) { f( item.m_val );});
}
template <typename K, typename Predicate>
bool find_with( K const& key, Predicate pred )
{
+ CDS_UNUSED( pred );
return base_class::find_with( key, cds::details::predicate_wrapper<node_type, Predicate, key_accessor>() );
}
struct ensure_functor
{
template <typename T>
- void operator ()(bool bNew, T& item, T& val )
+ void operator ()(bool bNew, T& item, T& /*val*/ )
{
if ( bNew )
++item.s.nEnsureNewCall;
struct find_functor
{
template <typename T, typename Q>
- void operator ()( T& item, Q& val )
+ void operator ()( T& item, Q& /*val*/ )
{
++item.s.nFindCall;
}
struct ensure_functor
{
template <typename T>
- void operator ()(bool bNew, T& item, T& val )
+ void operator ()(bool bNew, T& item, T& /*val*/ )
{
if ( bNew )
++item.s.nEnsureNewCall;
struct find_functor
{
template <typename T, typename Q>
- void operator ()( T& item, Q& val )
+ void operator ()( T& item, Q& /*val*/ )
{
++item.s.nFindCall;
}
};
struct ensure_functor {
- void operator()( bool /*bNew*/, item& i, int n )
+ void operator()( bool /*bNew*/, item& i, int /*n*/ )
{
i.nVal = i.nKey * 1024;
}
};
- pointer allocate( size_t nSize, const void * pHint )
+ pointer allocate( size_t nSize, const void * /*pHint*/ )
{
return reinterpret_cast<pointer>( s_MichaelHeap_NoStat.alloc( sizeof(T) * nSize ) );
}
- void deallocate( pointer p, size_t nCount )
+ void deallocate( pointer p, size_t /*nCount*/ )
{
s_MichaelHeap_NoStat.free( p );
}
alignment = 1
};
- static void stat(summary_stat& s)
+ static void stat(summary_stat& /*s*/)
{}
};
alignment = 1
};
- pointer allocate( size_t nSize, const void * pHint )
+ pointer allocate( size_t nSize, const void * /*pHint*/ )
{
return reinterpret_cast<pointer>( s_MichaelHeap_Stat.alloc( sizeof(T) * nSize ) );
}
- void deallocate( pointer p, size_t nCount )
+ void deallocate( pointer p, size_t /*nCount*/ )
{
s_MichaelHeap_Stat.free( p );
}
alignment = ALIGN
};
- pointer allocate( size_t nSize, const void * pHint )
+ pointer allocate( size_t nSize, const void * /*pHint*/ )
{
return reinterpret_cast<pointer>( s_MichaelHeap_NoStat.alloc_aligned( sizeof(T) * nSize, ALIGN ) );
}
- void deallocate( pointer p, size_t nCount )
+ void deallocate( pointer p, size_t /*nCount*/ )
{
s_MichaelHeap_NoStat.free_aligned( p );
}
alignment = ALIGN
};
- pointer allocate( size_t nSize, const void * pHint )
+ pointer allocate( size_t nSize, const void * /*pHint*/ )
{
return reinterpret_cast<pointer>( s_MichaelHeap_Stat.alloc_aligned( sizeof(T) * nSize, ALIGN ) );
}
- void deallocate( pointer p, size_t nCount )
+ void deallocate( pointer p, size_t /*nCount*/ )
{
s_MichaelHeap_Stat.free_aligned( p );
}
alignment = ALIGN
};
- pointer allocate( size_t nSize, const void * pHint )
+ pointer allocate( size_t nSize, const void * /*pHint*/ )
{
return reinterpret_cast<pointer>( cds::OS::aligned_malloc( sizeof(T) * nSize, ALIGN ) );
}
- void deallocate( pointer p, size_t nCount )
+ void deallocate( pointer p, size_t /*nCount*/ )
{
cds::OS::aligned_free( p );
}
- static void stat(summary_stat& s)
+ static void stat(summary_stat& /*s*/)
{}
};
{}
template <typename Q, typename Pred>
- bool erase_with( Q const& key, Pred pred )
+ bool erase_with( Q const& key, Pred /*pred*/ )
{
return cuckoo_base_class::erase_with( key, typename std::conditional< cuckoo_base_class::c_isSorted, Pred, typename Pred::equal_to>::type() );
}
resizing_policy_t m_placeHolder;
public:
- StripedHashMap_ord( size_t nCapacity, size_t nLoadFactor )
+ StripedHashMap_ord( size_t /*nCapacity*/, size_t nLoadFactor )
: base_class( 0, *(new(&m_placeHolder) resizing_policy_t( nLoadFactor * 1024 )) )
{}
};
resizing_policy_t m_placeHolder;
public:
- RefinableHashMap_ord( size_t nCapacity, size_t nLoadFactor )
+ RefinableHashMap_ord( size_t /*nCapacity*/, size_t nLoadFactor )
: base_class( 0, *(new(&m_placeHolder) resizing_policy_t( nLoadFactor * 1024 )) )
{}
};
};
template <typename Map>
- static inline void print_stat( Map const& m )
+ static inline void print_stat( Map const& /*m*/ )
{}
template <typename Map>
- static inline void additional_cleanup( Map& m )
+ static inline void additional_cleanup( Map& /*m*/ )
{}
template <typename Map>
- static inline void additional_check( Map& m )
+ static inline void additional_check( Map& /*m*/ )
{}
CPPUNIT_MSG( s.statistics() );
}
template <typename GC, typename Key, typename T, typename Traits>
- static inline void additional_cleanup( cc::EllenBinTreeMap<GC, Key, T, Traits>& s )
+ static inline void additional_cleanup( cc::EllenBinTreeMap<GC, Key, T, Traits>& /*s*/ )
{
ellen_bintree_pool::internal_node_counter::reset();
}
namespace ellen_bintree_check {
- static inline void check_stat( cds::intrusive::ellen_bintree::empty_stat const& s )
+ static inline void check_stat( cds::intrusive::ellen_bintree::empty_stat const& /*s*/ )
{
// This check is not valid for thread-based RCU
/*
typedef typename base_class::mapped_type value_type;
typedef size_t item_counter;
- StdHashMap( size_t nMapSize, size_t nLoadFactor )
+ StdHashMap( size_t /*nMapSize*/, size_t /*nLoadFactor*/ )
{}
bool find( const Key& key )
typedef typename base_class::value_type pair_type;
typedef size_t item_counter;
- StdMap( size_t nMapSize, size_t nLoadFactor )
+ StdMap( size_t /*nMapSize*/, size_t /*nLoadFactor*/ )
{}
bool find( const Key& key )
template <typename Stat>
- static inline void check_statistics( Stat const& s )
+ static inline void check_statistics( Stat const& /*s*/ )
{}
static inline void check_statistics( cds::container::ellen_bintree::stat<> const& s )
protected:
template <class Queue>
- void analyze( CppUnitMini::ThreadPool& pool, Queue& testQueue, size_t nLeftOffset, size_t nRightOffset )
+ void analyze( CppUnitMini::ThreadPool& pool, Queue& testQueue, size_t /*nLeftOffset*/, size_t nRightOffset )
{
typedef Consumer<Queue> Reader;
typedef Producer<Queue> Writer;
<< "\t\tAdd basket attempts: " << s.m_TryAddBasket.get() << "\n"
<< "\t\t Add basket success: " << s.m_AddBasketCount.get() << "\n";
}
- static inline std::ostream& operator <<(std::ostream& o, cds::intrusive::basket_queue::empty_stat const& s)
+ static inline std::ostream& operator <<(std::ostream& o, cds::intrusive::basket_queue::empty_stat const& /*s*/)
{
return o;
}
<< "\t\t Bad tail: " << s.m_BadTail.get() << "\n";
}
- static inline std::ostream& operator <<( std::ostream& o, cds::intrusive::msqueue::empty_stat const& s )
+ static inline std::ostream& operator <<( std::ostream& o, cds::intrusive::msqueue::empty_stat const& /*s*/ )
{
return o;
}
<< "\t\t fix list call: " << s.m_FixListCount.get() << "\n";
}
- static inline std::ostream& operator <<( std::ostream& o, cds::intrusive::optimistic_queue::empty_stat const& s )
+ static inline std::ostream& operator <<( std::ostream& o, cds::intrusive::optimistic_queue::empty_stat const& /*s*/ )
{
return o;
}
<< "\t Release pub-record: " << s.m_nReleasePubRecCount.get()<< "\n";
}
- static inline std::ostream& operator <<( std::ostream& o, cds::intrusive::fcqueue::empty_stat const& s )
+ static inline std::ostream& operator <<( std::ostream& o, cds::intrusive::fcqueue::empty_stat const& /*s*/ )
{
return o;
}
- static inline std::ostream& operator <<( std::ostream& o, queue::details::empty_stat const& s )
+ static inline std::ostream& operator <<( std::ostream& o, queue::details::empty_stat const& /*s*/ )
{
return o;
}
<< "\t\tAdd basket attempts: " << s.m_TryAddBasket.get() << "\n"
<< "\t\t Add basket success: " << s.m_AddBasketCount.get() << "\n";
}
- static inline std::ostream& operator <<(std::ostream& o, cds::container::basket_queue::empty_stat const& s)
+ static inline std::ostream& operator <<(std::ostream& o, cds::container::basket_queue::empty_stat const& /*s*/)
{
return o;
}
<< "\t\t Bad tail: " << s.m_BadTail.get() << "\n";
}
- static inline std::ostream& operator <<( std::ostream& o, cds::container::msqueue::empty_stat const& s )
+ static inline std::ostream& operator <<( std::ostream& o, cds::container::msqueue::empty_stat const& /*s*/ )
{
return o;
}
<< "\t\t fix list call: " << s.m_FixListCount.get() << "\n";
}
- static inline std::ostream& operator <<( std::ostream& o, cds::intrusive::optimistic_queue::empty_stat const& s )
+ static inline std::ostream& operator <<( std::ostream& o, cds::intrusive::optimistic_queue::empty_stat const& /*s*/ )
{
return o;
}
<< "\t Release pub-record: " << s.m_nReleasePubRecCount.get()<< "\n";
}
- static inline std::ostream& operator <<( std::ostream& o, cds::container::fcqueue::empty_stat const& s )
+ static inline std::ostream& operator <<( std::ostream& o, cds::container::fcqueue::empty_stat const& /*s*/ )
{
return o;
}
- static inline ostream& operator <<( ostream& o, cds::container::fcdeque::empty_stat const& s )
+ static inline ostream& operator <<( ostream& o, cds::container::fcdeque::empty_stat const& /*s*/ )
{
return o;
}
namespace set2 {
template <typename Set>
- static inline void check_before_clear( Set& s )
+ static inline void check_before_clear( Set& /*s*/ )
{}
template <typename GC, typename Key, typename T, typename Traits>
struct ensure_func
{
template <typename Q>
- void operator()( bool bNew, key_value_pair const&, Q const& )
+ void operator()( bool /*bNew*/, key_value_pair const&, Q const& )
{}
};
public:
, nModified(0)
{}
- void operator()( bool bNew, keyval_type& val, size_t nKey )
+ void operator()( bool bNew, keyval_type& val, size_t /*nKey*/ )
{
- std::unique_lock<typename value_type::lock_type> ac( val.val.m_access );
+ std::unique_lock<typename value_type::lock_type> ac( val.val.m_access );
if ( !val.val.bInitialized )
{
val.val.nKey = val.key;
{}
template <typename Q, typename Pred>
- bool erase_with( Q const& key, Pred pred )
+ bool erase_with( Q const& key, Pred /*pred*/ )
{
return cuckoo_base_class::erase_with( key, typename std::conditional< cuckoo_base_class::c_isSorted, Pred, typename Pred::equal_to>::type() );
}
{}
template <typename Q, typename Less>
- bool erase_with( Q const& v, Less pred )
+ bool erase_with( Q const& v, Less /*pred*/ )
{
return base_class::erase( v );
}
resizing_policy_t m_placeHolder;
public:
- StripedHashSet_ord( size_t nCapacity, size_t nLoadFactor )
+ StripedHashSet_ord( size_t /*nCapacity*/, size_t nLoadFactor )
: base_class( 0, *(new(&m_placeHolder) resizing_policy_t( nLoadFactor * 1024 )) )
{}
template <typename Q, typename Less>
- bool erase_with( Q const& v, Less pred )
+ bool erase_with( Q const& v, Less /*pred*/ )
{
return base_class::erase( v );
}
{}
template <typename Q, typename Less>
- bool erase_with( Q const& v, Less pred )
+ bool erase_with( Q const& v, Less /*pred*/ )
{
return base_class::erase( v );
}
resizing_policy_t m_placeHolder;
public:
- RefinableHashSet_ord( size_t nCapacity, size_t nLoadFactor )
+ RefinableHashSet_ord( size_t /*nCapacity*/, size_t nLoadFactor )
: base_class( 0, *(new(&m_placeHolder) resizing_policy_t( nLoadFactor * 1024 )) )
{}
template <typename Q, typename Less>
- bool erase_with( Q const& v, Less pred )
+ bool erase_with( Q const& v, Less /*pred*/ )
{
return base_class::erase( v );
}
// *************************************************
template <typename Set>
- static inline void print_stat( Set const& s )
+ static inline void print_stat( Set const& /*s*/ )
{}
template <typename GC, typename T, typename Traits>
//*******************************************************
template <typename Set>
- static inline void additional_check( Set& set )
+ static inline void additional_check( Set& /*set*/ )
{}
template <typename Set>
- static inline void additional_cleanup( Set& set )
+ static inline void additional_cleanup( Set& /*set*/ )
{}
namespace ellen_bintree_check {
- static inline void check_stat( cds::intrusive::ellen_bintree::empty_stat const& s )
+ static inline void check_stat( cds::intrusive::ellen_bintree::empty_stat const& /*s*/ )
{
// Not true for threaded RCU
/*
}
template <typename GC, typename Key, typename T, typename Traits>
- static inline void additional_cleanup( cc::EllenBinTreeSet<GC, Key, T, Traits>& s )
+ static inline void additional_cleanup( cc::EllenBinTreeSet<GC, Key, T, Traits>& /*s*/ )
{
ellen_bintree_pool::internal_node_counter::reset();
}
<< "\t m_EliminationFailed: " << s.m_EliminationFailed.get() << "\n";
}
- static inline ostream& operator <<( ostream& o, cds::intrusive::treiber_stack::empty_stat const& s )
+ static inline ostream& operator <<( ostream& o, cds::intrusive::treiber_stack::empty_stat const& /*s*/ )
{
return o;
}
- static inline ostream& operator <<( ostream& o, cds::intrusive::fcstack::empty_stat const& s )
+ static inline ostream& operator <<( ostream& o, cds::intrusive::fcstack::empty_stat const& /*s*/ )
{
return o;
}
}
template <class Stack>
- void analyze( CppUnitMini::ThreadPool& pool, Stack& testStack )
+ void analyze( CppUnitMini::ThreadPool& pool, Stack& /*testStack*/ )
{
size_t nPushError = 0;
size_t nPopEmpty = 0;
}
template <class Stack>
- void analyze( CppUnitMini::ThreadPool& pool, Stack& testStack )
+ void analyze( CppUnitMini::ThreadPool& pool, Stack& /*testStack*/ )
{
size_t nPushError = 0;
size_t nPopEmpty = 0;
<< "\t m_EliminationFailed: " << s.m_EliminationFailed.get() << "\n";
}
- static inline ostream& operator <<(ostream& o, cds::container::treiber_stack::empty_stat const& s)
+ static inline ostream& operator <<(ostream& o, cds::container::treiber_stack::empty_stat const& /*s*/)
{
return o;
}
- static inline ostream& operator <<( ostream& o, cds::container::fcstack::empty_stat const& s )
+ static inline ostream& operator <<( ostream& o, cds::container::fcstack::empty_stat const& /*s*/ )
{
return o;
}
<< "\t Release pub-record: " << s.m_nReleasePubRecCount.get()<< "\n";
}
- static inline ostream& operator <<( ostream& o, cds::container::fcdeque::empty_stat const& s )
+ static inline ostream& operator <<( ostream& o, cds::container::fcdeque::empty_stat const& /*s*/ )
{
return o;
}