]>
Commit | Line | Data |
---|---|---|
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 | ||
7 | mod parker; | |
6a06907d | 8 | #[cfg(not(crossbeam_loom))] |
5869c6ff XL |
9 | mod sharded_lock; |
10 | mod wait_group; | |
11 | ||
12 | pub use self::parker::{Parker, Unparker}; | |
6a06907d | 13 | #[cfg(not(crossbeam_loom))] |
5869c6ff XL |
14 | pub use self::sharded_lock::{ShardedLock, ShardedLockReadGuard, ShardedLockWriteGuard}; |
15 | pub use self::wait_group::WaitGroup; |