hazptr_obj_base_linked
Synopsis
Declared in <folly/synchronization/HazptrObjLinked.h>
template<
typename T,
template<
typename,
typename,
typename> typename Atom = atomic,
typename Deleter = std::default_delete<T>>
class hazptr_obj_base_linked
: public hazptr_obj_linked<Atom>
, public hazptr_deleter<T, D>
Base Classes
Name |
Description |
hazptr_obj_linked |
|
hazptr_deleter |
Member Functions
Name |
Description |
Assignment operators |
|
Increments the link count (thread‐safe). |
|
Increments the link count; caller must guarantee thread safety. |
|
Increments the ref count (thread‐safe). |
|
Increments the ref count; caller must guarantee thread safety. |
|
Returns the cohort the object is associated with, if any. |
|
Returns the raw cohort tag, including the tag bit. |
|
Deletes an object using the stored deleter. |
|
Retires the object, handing reclamation to the hazard pointer library. |
|
Sets the cohort and makes the object untagged. |
|
Sets the cohort and makes the object tagged. |
|
Sets the deleter used to reclaim objects. |
|
Reports whether the object is tagged. |
|
Retires the object if its last link has been released. |
|
Reclaims the object if the last link is released, without checking hazard pointers. |
Created with MrDocs