| 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 | #[cfg(not(crossbeam_loom))] |
| 8 | mod once_lockrust-analyzer cargo crossbeam-utils 0.8.21 sync/once_lock/; |
| 9 | mod parkerrust-analyzer cargo crossbeam-utils 0.8.21 sync/parker/; |
| 10 | #[cfg(not(crossbeam_loom))] |
| 11 | mod sharded_lockrust-analyzer cargo crossbeam-utils 0.8.21 sync/sharded_lock/; |
| 12 | mod wait_grouprust-analyzer cargo crossbeam-utils 0.8.21 sync/wait_group/; |
| 13 | |
| 14 | pub use selfrust-analyzer cargo crossbeam-utils 0.8.21 sync/::parkerrust-analyzer cargo crossbeam-utils 0.8.21 sync/parker/::{Parkerrust-analyzer cargo crossbeam-utils 0.8.21 sync/parker/Parker#, Unparkerrust-analyzer cargo crossbeam-utils 0.8.21 sync/parker/Unparker#}; |
| 15 | #[cfg(not(crossbeam_loom))] |
| 16 | pub use selfrust-analyzer cargo crossbeam-utils 0.8.21 sync/::sharded_lockrust-analyzer cargo crossbeam-utils 0.8.21 sync/sharded_lock/::{ShardedLockrust-analyzer cargo crossbeam-utils 0.8.21 sync/sharded_lock/ShardedLock#, ShardedLockReadGuardrust-analyzer cargo crossbeam-utils 0.8.21 sync/sharded_lock/ShardedLockReadGuard#, ShardedLockWriteGuardrust-analyzer cargo crossbeam-utils 0.8.21 sync/sharded_lock/ShardedLockWriteGuard#}; |
| 17 | pub use selfrust-analyzer cargo crossbeam-utils 0.8.21 sync/::wait_grouprust-analyzer cargo crossbeam-utils 0.8.21 sync/wait_group/::WaitGrouprust-analyzer cargo crossbeam-utils 0.8.21 sync/wait_group/WaitGroup#; |