reimplement guarded_ptr from scratch
[libcds.git] / cds / gc / impl / hp_impl.h
index 2b63189709e77c5d5c2b1e2e7030ab0372722278..ac3953685616e3bf1c186cbda9ed021c8db44604 100644 (file)
@@ -24,6 +24,16 @@ namespace cds { namespace gc {
             cds::threading::Manager::detachThread();
     }
 
+    inline /*static*/ cds::gc::hp::details::hp_guard& HP::thread_gc::alloc_guard()
+    {
+        return cds::threading::getGC<HP>().allocGuard();
+    }
+
+    inline /*static*/ void HP::thread_gc::free_guard( cds::gc::hp::details::hp_guard& g )
+    {
+        cds::threading::getGC<HP>().freeGuard( g );
+    }
+
     inline HP::Guard::Guard()
         : Guard::base_class( cds::threading::getGC<HP>() )
     {}