swansong 0.3.7

Graceful Shutdown
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The synchronization primitives that carry swansong's stop and guard protocols. Under
//! `--cfg swansong_loom` they are loom's, so that the models in `shard.rs` explore the real code.

#[cfg(swansong_loom)]
pub(crate) use loom::sync::{
    atomic::{AtomicU64, AtomicUsize},
    Mutex,
};
#[cfg(not(swansong_loom))]
pub(crate) use std::sync::{
    atomic::{AtomicU64, AtomicUsize},
    Mutex,
};