waitfree-sync 0.3.3

A collection of wait-free data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![doc = include_str!("../Readme.md")]
#![warn(missing_docs)]
#[cfg(loom)]
mod import {
    pub(crate) use loom::cell::UnsafeCell;
    pub(crate) use loom::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
    pub(crate) use loom::sync::Arc;
}

#[cfg(not(loom))]
mod import {
    pub(crate) use core::cell::UnsafeCell;
    pub(crate) use core::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
    pub(crate) use std::sync::Arc;
}

pub mod spsc;
pub mod triple_buffer;