xenium
Classes
xenium::reclamation::abandon Namespace Reference

This namespace contains various abandonment strategies to be used in the generic_epoch_based reclamation scheme. More...

Classes

struct  always
 Always abandon the remaining retired nodes when the thread leaves its critical region. More...
 
struct  never
 Never abandon any nodes (except when the thread terminates). More...
 
struct  when_exceeds_threshold
 Abandon the retired nodes upon leaving the critical region when the number of nodes exceeds the specified threshold. More...
 

Detailed Description

This namespace contains various abandonment strategies to be used in the generic_epoch_based reclamation scheme.

These strategies define when a thread should abandon its retired nodes (i.e., put them on the global list of retired nodes. A thread will always abandon any remaining retired nodes when it terminates.

Note
The abandon strategy is applied for the retire list of each epoch individually. This is important in case the when_exceeds_threshold policy is used.