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

Synopsis

Declared in <cuckoocache.h>

explicit
bit_packed_atomic_flags(uint32_t size);

Parameters

Name

Description

size

the 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.

Created with MrDocs