cds  1.4.0
Public Member Functions
cds::gc::HP::thread_gc Class Reference

Wrapper for hzp::ThreadGC class. More...

#include <cds/gc/hp.h>

Inheritance diagram for cds::gc::HP::thread_gc:
cds::gc::hzp::ThreadGC

Public Member Functions

 thread_gc (bool bPersistent=false)
 Constructor. More...
 
 ~thread_gc ()
 Destructor. More...
 
- Public Member Functions inherited from cds::gc::hzp::ThreadGC
bool isInitialized () const
 Checks if thread GC is initialized.
 
void init ()
 Initialization. Repeat call is available.
 
void fini ()
 Finalization. Repeat call is available.
 
details::HPGuard & allocGuard ()
 Initializes HP guard guard.
 
void freeGuard (details::HPGuard &guard)
 Frees HP guard guard.
 
template<size_t COUNT>
void allocGuard (details::HPArray< COUNT > &arr)
 Initializes HP guard array arr.
 
template<size_t COUNT>
void freeGuard (details::HPArray< COUNT > &arr)
 Frees HP guard array arr.
 
template<typename T >
void retirePtr (T *p, void(*pFunc)(T *))
 Places retired pointer and its deleter pFunc into thread's array of retired pointer for deferred reclamation.
 
void retirePtr (const details::retired_ptr &p)
 Places retired pointer into thread's array of retired pointer for deferred reclamation.
 

Detailed Description

Wrapper for hzp::ThreadGC class.

This class performs automatically attaching/detaching Hazard Pointer GC for the current thread.

Constructor & Destructor Documentation

cds::gc::HP::thread_gc::thread_gc ( bool  bPersistent = false)

Constructor.

The constructor attaches the current thread to the Hazard Pointer GC if it is not yet attached. The bPersistent parameter specifies attachment persistence:

  • true - the class destructor will not detach the thread from Hazard Pointer GC.
  • false (default) - the class destructor will detach the thread from Hazard Pointer GC.
cds::gc::HP::thread_gc::~thread_gc ( )

Destructor.

If the object has been created in persistent mode, the destructor does nothing. Otherwise it detaches the current thread from Hazard Pointer GC.


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

cds 1.4.0 Developed by Maxim Khiszinsky aka khizmax 2007 - 2012
Autogenerated Mon May 20 2013 00:37:58 by Doxygen 1.8.3.1