folly::ConcurrentBitSet

An atomic bitset of fixed size (specified at compile time).

Synopsis

Declared in <folly/ConcurrentBitSet.h>

template<size_t N>
class ConcurrentBitSet;

Description

Formerly known as AtomicBitSet. It was renamed while fixing a bug to avoid any silent breakages during run time.

Member Functions

NameDescription
ConcurrentBitSet [constructor]Constructors
operator= [deleted]Copy assignment is deleted; the bitset is not copyable.
operator[] Same as test() with the default memory order.
reset Set bit idx to false, using the given memory order. Returns the previous value of the bit.
set set overloads
size Return the size of the bitset.
test Read bit idx.