Retire an object so it is reclaimed once no hazard pointer protects it.

Synopsis

Declared in <folly/synchronization/Hazptr‐fwd.h>

template<
    template<typename> typename Atom = atomic,
    typename T,
    typename D = std::default_delete<T>>
void
hazptr_retire(
    T* obj,
    D reclaim = {});

Parameters

Name

Description

obj

The object to retire.

reclaim

The callable used to reclaim the object when it is safe.

Created with MrDocs