CuckooCache::bit_packed_atomic_flags::bit_packed_atomic_flags

Constructors

Synopses

Declared in <cuckoocache.h>

No default constructor, as there must be some size.

bit_packed_atomic_flags() = delete;
» more...

bit_packed_atomic_flags constructor creates memory to sufficiently keep track of garbage collection information for size entries.

explicit
bit_packed_atomic_flags(uint32_t size);
» more...

Parameters

NameDescription
sizethe number of elements to allocate space for

Postconditions

  • bit_set, bit_unset, and bit_is_set function properly forall x. x < size
  • All calls to bit_is_set (without subsequent bit_unset) will return true.