xenium
|
An implementation of the hazard pointers reclamation scheme as proposed by Michael [Mic04]. More...
#include <hazard_pointer.hpp>
Public Types | |
template<class... Policies> | |
using | with = hazard_pointer< typename Traits::template with< Policies... > > |
Customize the reclamation scheme with the given policies. More... | |
An implementation of the hazard pointers reclamation scheme as proposed by Michael [Mic04].
For general information about the interface of the reclamation scheme see Reclamation scheme interface.
This class does not take a list of policies, but a Traits
type that can be customized with a list of policies. The following policies are supported:
xenium::policy::allocation_strategy
xenium::reclamation::hp_allocation::static_strategy
and 'xenium::reclamation::hp_allocation::dynamic_strategy`, where both strategies can be further customized via their respective template parameters. (defaults to xenium::reclamation::he_allocation::static_strategy<3>
)Traits |
using xenium::reclamation::hazard_pointer< Traits >::with = hazard_pointer<typename Traits::template with<Policies...> > |
Customize the reclamation scheme with the given policies.
The given policies are applied to the current configuration, replacing previously specified policies of the same type.
The resulting type is the newly configured reclamation scheme.
Policies | list of policies to customize the behaviour |