Rename class cds::gc::PTB to cds::gc::DHP
[libcds.git] / cds / threading / model.h
index 620654a760332ef31b29038816da39b263436ebd..4ae5ce7e3fbac02772896d84eb7cd63122e1fc88 100644 (file)
@@ -31,30 +31,17 @@ namespace cds { namespace threading {
         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
@@ -78,13 +65,13 @@ namespace cds { namespace threading {
     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