tokio_sync/lib.rs
1#![doc(html_root_url = "https://docs.rs/tokio-sync/0.1.8")]
2#![deny(missing_debug_implementations, missing_docs, unreachable_pub)]
3
4//! Asynchronous synchronization primitives.
5//!
6//! > **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved into
7//! > [`tokio::sync`] behind the `sync` [feature flag].
8//!
9//! [`tokio::sync`]: https://docs.rs/tokio/latest/tokio/sync/index.html
10//! [feature flag]: https://docs.rs/tokio/latest/tokio/index.html#feature-flags
11//!
12//! This crate provides primitives for synchronizing asynchronous tasks.
13
14extern crate fnv;
15#[macro_use]
16extern crate futures;
17
18macro_rules! debug {
19 ($($t:tt)*) => {
20 if false {
21 println!($($t)*);
22 }
23 }
24}
25
26macro_rules! if_fuzz {
27 ($($t:tt)*) => {{
28 if false { $($t)* }
29 }}
30}
31
32pub mod lock;
33mod loom;
34pub mod mpsc;
35pub mod oneshot;
36pub mod semaphore;
37pub mod task;
38pub mod watch;