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

Policy to configure whether to insert padding after the internal header for lock_free_ref_count reclamation. More...

#include <lock_free_ref_count.hpp>

Detailed Description

template<bool Value>
struct xenium::policy::insert_padding< Value >

Policy to configure whether to insert padding after the internal header for lock_free_ref_count reclamation.

This policy is used to define whether a padding should be inserted between the internal header that contains the reference counter and the actual object. This can be used to avoid false sharing, but of course it increases memory overhead, which can also cause a performance drop in some cases.

Template Parameters
Value