cds  1.3.0
Public Types | Public Member Functions
cds::gc::hzp::AutoHPGuard Class Reference

Auto HPGuard. More...

#include <cds/gc/hzp/hzp.h>

Inheritance diagram for cds::gc::hzp::AutoHPGuard:
cds::gc::HP::Guard

Public Types

typedef
details::HPGuard::hazard_ptr 
hazard_ptr
 Hazard pointer type.
 

Public Member Functions

 AutoHPGuard (ThreadGC &gc)
 Allocates HP guard from gc.
 
template<typename T >
 AutoHPGuard (ThreadGC &gc, T *p)
 Allocates HP guard from gc and protects the pointer p of type T.
 
 ~AutoHPGuard ()
 Frees HP guard. The pointer guarded may be deleted after this.
 
ThreadGCgetGC () const
 Returns thread GC.
 
template<typename T >
T * operator= (T *p)
 Protects the pointer p against reclamation (guards the pointer).
 

Detailed Description

Auto HPGuard.

This class encapsulates Hazard Pointer guard to protect a pointer against deletion . It allocates one HP from thread's HP array in constructor and free the HP allocated in destruction time.


The documentation for this class was generated from the following file:

cds 1.3.0 Developed by Maxim Khiszinsky aka khizmax 2007 - 2012
Autogenerated Sat Dec 29 2012 19:12:34 by Doxygen 1.8.3