dualcache-ff 0.4.1

A wait-free, high-performance concurrent cache optimized for extreme read-to-write ratios.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate alloc;
use super::DaemonSpawner;

/// A default spawner using `std::thread::spawn` for `std` environments.
#[derive(Debug, Clone, Copy, Default)]
pub struct DefaultSpawner;

impl DaemonSpawner for DefaultSpawner {
    #[inline]
    fn spawn(&self, f: alloc::boxed::Box<dyn FnOnce() + Send + 'static>) {
        std::thread::spawn(move || f());
    }
}