return Manager::getHZPGC();
}
- /// Get cds::gc::HRC thread GC implementation for current thread
+ /// Get cds::gc::DHP thread GC implementation for current thread
/**
The object returned may be uninitialized if you did not call attachThread in the beginning of thread execution
- or if you did not use cds::gc::HRC.
- To initialize cds::gc::HRC GC you must constuct cds::gc::HRC object in the beginning of your application,
+ or if you did not use cds::gc::DHP.
+ To initialize cds::gc::DHP GC you must constuct cds::gc::DHP object in the beginning of your application,
see \ref cds_how_to_use "How to use libcds"
*/
template <>
- inline cds::gc::HRC::thread_gc_impl& getGC<cds::gc::HRC>()
+ inline cds::gc::DHP::thread_gc_impl& getGC<cds::gc::DHP>()
{
- return Manager::getHRCGC();
- }
-
- /// Get cds::gc::PTB thread GC implementation for current thread
- /**
- The object returned may be uninitialized if you did not call attachThread in the beginning of thread execution
- or if you did not use cds::gc::PTB.
- To initialize cds::gc::PTB GC you must constuct cds::gc::PTB object in the beginning of your application,
- see \ref cds_how_to_use "How to use libcds"
- */
- template <>
- inline cds::gc::PTB::thread_gc_impl& getGC<cds::gc::PTB>()
- {
- return Manager::getPTBGC();
+ return Manager::getDHPGC();
}
//@cond
inline cds::urcu::details::thread_data<cds::urcu::signal_buffered_tag> * getRCU<cds::urcu::signal_buffered_tag>()
{
ThreadData * p = Manager::thread_data();
- return p ? p->m_pSHBRCU : NULL;
+ return p ? p->m_pSHBRCU : nullptr;
}
template<>
inline cds::urcu::details::thread_data<cds::urcu::signal_threaded_tag> * getRCU<cds::urcu::signal_threaded_tag>()
{
ThreadData * p = Manager::thread_data();
- return p ? p->m_pSHTRCU : NULL;
+ return p ? p->m_pSHTRCU : nullptr;
}
#endif