folly::MutableAtom

MutableAtom is a tiny wrapper that gives you the option of atomically updating values inserted into an AtomicUnorderedInsertMap<K, MutableAtom<V>>. This relies on AtomicUnorderedInsertMap's guarantee that it doesn't move values.

Synopsis

Declared in <folly/AtomicUnorderedMap.h>

template<
    typename T,
    template<typename> typename Atom = atomic>
struct MutableAtom;

Member Functions

NameDescription
MutableAtom [constructor]Construct the wrapper, initializing the atomic value with init.

Data Members

NameDescription
data The wrapped atomic value.