cds  2.2.0
cds::gc::HP::thread_gc Class Reference

Wrapper for hp::ThreadGC class. More...

#include <cds/gc/hp.h>

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

Public Member Functions

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

Detailed Description

Wrapper for hp::ThreadGC class.

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

Constructor & Destructor Documentation

§ thread_gc()

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


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.

§ ~thread_gc()

cds::gc::HP::thread_gc::~thread_gc ( )


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 2.2.0 Developed by Maxim Khizhinsky aka khizmax 2007 - 2017
Autogenerated Wed Jan 4 2017 08:49:49 by Doxygen 1.8.12