cds  2.2.0
cds::gc::DHP::thread_gc Class Reference

Thread-level garbage collector. More...

#include <cds/gc/dhp.h>

Inheritance diagram for cds::gc::DHP::thread_gc:

Public Member Functions

 thread_gc (bool bPersistent=false)
 Constructor. More...
 ~thread_gc ()
 Destructor. More...

Detailed Description

Thread-level garbage collector.

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

Constructor & Destructor Documentation

§ thread_gc()

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


The constructor attaches the current thread to the Dynamic 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 Dynamic Hazard Pointer GC.
  • false (default) - the class destructor will detach the thread from Dynamic Hazard Pointer GC.

§ ~thread_gc()

cds::gc::DHP::thread_gc::~thread_gc ( )


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

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

cds 2.2.0 Developed by Maxim Khizhinsky aka khizmax 2007 - 2017
Autogenerated Wed Jan 4 2017 08:49:49 by Doxygen 1.8.12