folly::hazptr_obj_retired_list

hazptr_obj_retired_list

Synopsis

Declared in <folly/synchronization/HazptrObj.h>

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

Member Functions

NameDescription
hazptr_obj_retired_list [constructor]Constructs an empty retired list.
check_lock Reports whether the retired list is currently locked.
check_threshold_try_zero_count Zeroes the count if it meets or exceeds the given threshold.
count Returns the number of retired objects.
empty Reports whether the retired list is empty.
pop_all Removes and returns all retired objects.
push Pushes a list of retired objects, optionally locking.
push_unlock Pushes a list of retired objects and releases the lock.

Static Data Members

NameDescription
kAlsoLock Push flag requesting that the retired list also be locked.
kDontLock Push flag requesting that the retired list not be locked.
kMayBeLocked Push flag indicating the retired list may already be locked.
kMayNotBeLocked Push flag indicating the retired list may not be locked.