xenium
xenium::policy::padding_bytes< Value > Struct Template Reference

Policy to configure the number of padding bytes to add to each entry in kirsch_kfifo_queue and kirsch_bounded_kfifo_queue to reduce false sharing. More...

#include <policy.hpp>

Detailed Description

template<unsigned Value>
struct xenium::policy::padding_bytes< Value >

Policy to configure the number of padding bytes to add to each entry in kirsch_kfifo_queue and kirsch_bounded_kfifo_queue to reduce false sharing.

Note that this number of bytes is a lower bound. Depending on the size of the queue's value_type the compiler may add some additional padding. The effective size of a queue entry is provided in entry_size.

Template Parameters
Value