Files
tokio/tokio-sync/src/lib.rs
T

38 lines
709 B
Rust
Raw Normal View History

#![doc(html_root_url = "https://docs.rs/tokio-sync/0.2.0-alpha.2")]
#![warn(
2019-05-14 10:27:36 -07:00
missing_debug_implementations,
missing_docs,
rust_2018_idioms,
unreachable_pub
2019-05-14 10:27:36 -07:00
)]
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
//! Asynchronous synchronization primitives.
//!
//! This crate provides primitives for synchronizing asynchronous tasks.
macro_rules! debug {
($($t:tt)*) => {
if false {
println!($($t)*);
}
}
}
macro_rules! if_fuzz {
($($t:tt)*) => {{
if false { $($t)* }
}}
}
mod lock;
mod loom;
pub mod mpsc;
2019-02-21 11:56:15 -08:00
pub mod oneshot;
pub mod semaphore;
mod task;
pub mod watch;
pub use lock::{Lock, LockGuard};
pub use task::AtomicWaker;