]> git.proxmox.com Git - rustc.git/blame - vendor/crossbeam-utils/src/sync/mod.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / vendor / crossbeam-utils / src / sync / mod.rs
CommitLineData
5869c6ff
XL
1//! Thread synchronization primitives.
2//!
3//! * [`Parker`], a thread parking primitive.
4//! * [`ShardedLock`], a sharded reader-writer lock with fast concurrent reads.
5//! * [`WaitGroup`], for synchronizing the beginning or end of some computation.
6
7mod parker;
6a06907d 8#[cfg(not(crossbeam_loom))]
5869c6ff
XL
9mod sharded_lock;
10mod wait_group;
11
12pub use self::parker::{Parker, Unparker};
6a06907d 13#[cfg(not(crossbeam_loom))]
5869c6ff
XL
14pub use self::sharded_lock::{ShardedLock, ShardedLockReadGuard, ShardedLockWriteGuard};
15pub use self::wait_group::WaitGroup;