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

Policy to configure the size of thread-local free-lists for lock reclamation. More...

#include <lock_free_ref_count.hpp>

Detailed Description

template<std::size_t Value>
struct xenium::policy::thread_local_free_list_size< Value >

Policy to configure the size of thread-local free-lists for lock reclamation.

This policy is used to define the max. number of items in each thread-local free-list. If this is set to zero, then thread-local free-lists are completely disable. Using thread-local free-lists cna reduce the contention on the global free-list, but it may lead to increased memory usage, since items stored in a thread-local free-list can only be reused by the owning thread.

Template Parameters
Value