xenium
List of all members
xenium::reclamation::hp_allocation::static_strategy< K, A, B > Struct Template Reference

Hazard pointer allocation strategy for a static number of hazard pointers per thread. More...

#include <hazard_pointer.hpp>

Inherits xenium::reclamation::detail::generic_hp_allocation_strategy< K_, A, B, ThreadControlBlock >.

Detailed Description

template<size_t K = 2, size_t A = 2, size_t B = 100>
struct xenium::reclamation::hp_allocation::static_strategy< K, A, B >

Hazard pointer allocation strategy for a static number of hazard pointers per thread.

The threshold for the number of retired nodes is calculated as A * K * num_threads + B; K, A and B can be configured via template parameter.

Template Parameters
KThe max. number of hazard pointers that can be allocated at the same time.
A
B