msr-core 0.3.7

Industrial Automation Toolbox - Common core components
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod atomic;

pub mod relay;
pub use self::relay::Relay;

// loom doesn't provide a drop-in replacement for std::sync::Weak,
// only for std::sync::Arc. Unfortunately, both are needed.
#[allow(unused_imports)]
pub(crate) use std::sync::{Arc, Weak};

#[cfg(loom)]
#[allow(unused_imports)]
pub(crate) use loom::sync::{Condvar, Mutex};

#[cfg(not(loom))]
#[allow(unused_imports)]
pub(crate) use std::sync::{Condvar, Mutex};