Struct MPSCQueue::Block

Nested Relationships

This struct is a nested type of Template Class MPSCQueue.

Struct Documentation

struct Block

a block of B places, with the count of the items written and the link to the next block on a line that only the producer writes

Public Functions

inline T *at(std::size_t i)
inline void *slot(std::size_t i)

Public Members

std::atomic<std::size_t> filled = {0}
std::atomic<Block*> next = {nullptr}
Block *spare = nullptr

in the stacks of the lane

unsigned char raw[B * sizeof(T)]