xenium
|
Policy to configure the abandon strategy for generic_epoch_based
reclamation.
More...
#include <generic_epoch_based.hpp>
Policy to configure the abandon strategy for generic_epoch_based
reclamation.
This policy defines if/when a thread should abandon its local retired nodes when leaving the critical region. Every thread gathers its retired nodes in thread-local lists and delays reclamation until a later time when it is guaranteed that no thread holds a guard_ptr
to any of them. A thread may abandon its retired nodes by moving them to a global list. Any thread that performs reclamation of local retired nodes tries to adopt the list of abandoned retired nodes and reclaim those for which it is safe.
Possible values are:
xenium::reclamation::abandon::never
- never abandon local retired nodes (except when the thread terminates).xenium::reclamation::abandon::always
- always abandon local retired nodes when leaving the critical region.xenium::reclamation::abandon::when_exceeds_threshold
- abandon the local retired nodes if the number of remaining nodes exceeds the defined threshold at the time the thread leaves the critical region.T |