folly::hazptr_holder

hazptr_holder

Synopsis

Declared in <folly/synchronization/HazptrHolder.h>

template<template<
    typename,
    typename,
    typename> typename Atom = atomic>
class hazptr_holder;

Member Functions

NameDescription
hazptr_holder [constructor]Constructors
~hazptr_holder [destructor]Destroys the holder, releasing any owned hazard pointer.
operator= Assignment operators
hprec Returns a pointer to the owned hazptr_rec.
protect protect overloads
reset_protection reset_protection overloads
set_hprec Sets the pointer to the owned hazptr_rec.
swap Swaps ownership of hazard pointers between two holders.
try_protect try_protect overloads

Friends

NameDescription
folly::hazptr_localGrants hazptr_local access to the thread cache internals.

Non-Member Functions

NameDescription
make_hazard_pointerConstruct a nonempty hazard pointer holder.
swapSwap the contents of two hazard pointer holders.