synchrony 0.1.7

A library that provides both sync and unsync versions of common synchronization primitives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//!  Atomic scalars

/// Multithreaded atomic scalars
pub mod sync {
    crate::cfg_loom! {
        pub use std::sync::atomic::{
            AtomicBool, AtomicI8, AtomicI16, AtomicI32, AtomicI64, AtomicIsize, AtomicU8, AtomicU16,
            AtomicU32, AtomicU64, AtomicUsize,
        };
    }
}

/// Singlethreaded atomic scalars based on [`std::cell::Cell`]
pub mod unsync;