+ namespace hp {
+ inline guard::guard()
+ : m_hp( cds::threading::getGC<HP>().allocGuard() )
+ {}
+
+ template <typename T>
+ inline guard::guard( T * p )
+ : m_hp( cds::threading::getGC<HP>().allocGuard() )
+ {
+ m_hp = p;
+ }
+
+ inline guard::~guard()
+ {
+ cds::threading::getGC<HP>().freeGuard( m_hp );
+ }
+
+ template <size_t Count>
+ inline array<Count>::array()
+ {
+ cds::threading::getGC<HP>().allocGuard( *this );
+ }
+
+ template <size_t Count>
+ inline array<Count>::~array()
+ {
+ cds::threading::getGC<HP>().freeGuard( *this );
+ }
+
+
+
+ } // namespace hp
+