]> git.proxmox.com Git - rustc.git/blob - vendor/crossbeam-utils-0.7.2/src/sync/mod.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / vendor / crossbeam-utils-0.7.2 / src / sync / mod.rs
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 //!
7 //! [`Parker`]: struct.Parker.html
8 //! [`ShardedLock`]: struct.ShardedLock.html
9 //! [`WaitGroup`]: struct.WaitGroup.html
10
11 mod parker;
12 mod sharded_lock;
13 mod wait_group;
14
15 pub use self::parker::{Parker, Unparker};
16 pub use self::sharded_lock::{ShardedLock, ShardedLockReadGuard, ShardedLockWriteGuard};
17 pub use self::wait_group::WaitGroup;