xenium
Loading...
Searching...
No Matches
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>

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