2019-04-22 15:12:25 -07:00
|
|
|
#![doc(html_root_url = "https://docs.rs/tokio-sync/0.1.5")]
|
2019-05-14 10:27:36 -07:00
|
|
|
#![deny(
|
|
|
|
|
missing_debug_implementations,
|
|
|
|
|
missing_docs,
|
|
|
|
|
unreachable_pub,
|
|
|
|
|
rust_2018_idioms
|
|
|
|
|
)]
|
2019-01-22 11:37:26 -08:00
|
|
|
#![cfg_attr(test, deny(warnings))]
|
2019-05-14 10:27:36 -07:00
|
|
|
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
|
2019-06-27 11:33:36 -07:00
|
|
|
#![feature(async_await)]
|
2019-01-22 11:37:26 -08:00
|
|
|
|
|
|
|
|
//! 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)* }
|
|
|
|
|
}}
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-18 13:16:26 -04:00
|
|
|
pub mod lock;
|
2019-01-22 11:37:26 -08:00
|
|
|
mod loom;
|
|
|
|
|
pub mod mpsc;
|
2019-02-21 11:56:15 -08:00
|
|
|
pub mod oneshot;
|
2019-01-22 11:37:26 -08:00
|
|
|
pub mod semaphore;
|
|
|
|
|
pub mod task;
|
2019-02-22 21:54:50 -08:00
|
|
|
pub mod watch;
|