Wrapper for hp::ThreadGC class. More...
|thread_gc (bool bPersistent=false)|
Wrapper for hp::ThreadGC class.
This class performs automatically attaching/detaching Hazard Pointer GC for the current thread.
|cds::gc::HP::thread_gc::thread_gc||(||bool||bPersistent = ||)|
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.
If the object has been created in persistent mode, the destructor does nothing. Otherwise it detaches the current thread from Hazard Pointer GC.