130
130
//! inter-thread synchronisation mechanism, at the cost of some
131
131
//! extra memory.
132
132
//!
133
+ //! - [`mpmc`]: Multi-producer, multi-consumer queues, used for
134
+ //! message-based communication. Can provide a lightweight
135
+ //! inter-thread synchronisation mechanism, at the cost of some
136
+ //! extra memory.
137
+ //!
133
138
//! - [`Mutex`]: Mutual Exclusion mechanism, which ensures that at
134
139
//! most one thread at a time is able to access some data.
135
140
//!
150
155
//! [`Arc`]: crate::sync::Arc
151
156
//! [`Barrier`]: crate::sync::Barrier
152
157
//! [`Condvar`]: crate::sync::Condvar
158
+ //! [`mpmc`]: crate::sync::mpmc
153
159
//! [`mpsc`]: crate::sync::mpsc
154
160
//! [`Mutex`]: crate::sync::Mutex
155
161
//! [`Once`]: crate::sync::Once
@@ -172,6 +178,8 @@ pub use self::barrier::{Barrier, BarrierWaitResult};
172
178
pub use self :: condvar:: { Condvar , WaitTimeoutResult } ;
173
179
#[ stable( feature = "lazy_cell" , since = "1.80.0" ) ]
174
180
pub use self :: lazy_lock:: LazyLock ;
181
+ #[ stable( feature = "lazy_cell" , since = "1.80.0" ) ]
182
+ pub use self :: lazy_lock:: LazyLock ;
175
183
#[ unstable( feature = "mapped_lock_guards" , issue = "117108" ) ]
176
184
pub use self :: mutex:: MappedMutexGuard ;
177
185
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -181,21 +189,25 @@ pub use self::mutex::{Mutex, MutexGuard};
181
189
pub use self :: once:: { Once , OnceState , ONCE_INIT } ;
182
190
#[ stable( feature = "once_cell" , since = "1.70.0" ) ]
183
191
pub use self :: once_lock:: OnceLock ;
192
+ #[ stable( feature = "once_cell" , since = "1.70.0" ) ]
193
+ pub use self :: once_lock:: OnceLock ;
184
194
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
185
195
pub use self :: poison:: { LockResult , PoisonError , TryLockError , TryLockResult } ;
186
196
#[ unstable( feature = "reentrant_lock" , issue = "121440" ) ]
187
197
pub use self :: reentrant_lock:: { ReentrantLock , ReentrantLockGuard } ;
198
+ #[ unstable( feature = "reentrant_lock" , issue = "121440" ) ]
199
+ pub use self :: reentrant_lock:: { ReentrantLock , ReentrantLockGuard } ;
188
200
#[ unstable( feature = "mapped_lock_guards" , issue = "117108" ) ]
189
201
pub use self :: rwlock:: { MappedRwLockReadGuard , MappedRwLockWriteGuard } ;
190
202
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
191
203
pub use self :: rwlock:: { RwLock , RwLockReadGuard , RwLockWriteGuard } ;
192
204
193
- pub mod mpsc;
205
+ #[ unstable( feature = "mpmc_channel" , issue = "125712" ) ]
206
+ pub mod mpmc;
194
207
195
208
mod barrier;
196
209
mod condvar;
197
210
mod lazy_lock;
198
- mod mpmc;
199
211
mod mutex;
200
212
pub ( crate ) mod once;
201
213
mod once_lock;
0 commit comments