masstree 0.9.5

A high-performance concurrent ordered map (trie of B+trees)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Value retirement wrapper.
//!
//! This module provides [`BatchedRetire`], a thin wrapper around seize's retirement
//! that provides a consistent API for retirement and flushing across the codebase.

use seize::{Guard, LocalGuard};

/// Value retirement utilities.
#[derive(Debug)]
pub struct BatchedRetire;

impl BatchedRetire {
    /// Flush pending retirements to start reclamation process.
    #[inline(always)]
    pub fn flush(guard: &LocalGuard<'_>) {
        guard.flush();
    }
}