std: Fix missing stability in sync
* The `sync` module is stable * The `sync::mpsc` module is stable * The `Sender::send` method is stable. * The `Once::doit` method is now removed. * Deprecated atomic initializers are removed. * Renamed atomic initializers are now stable.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
//! and/or blocking at all, but rather provide the necessary tools to build
|
||||
//! other types of concurrent primitives.
|
||||
|
||||
#![experimental]
|
||||
#![stable]
|
||||
|
||||
pub use alloc::arc::{Arc, Weak};
|
||||
pub use core::atomic;
|
||||
|
||||
@@ -163,6 +163,8 @@
|
||||
//! }
|
||||
//! ```
|
||||
|
||||
#![stable]
|
||||
|
||||
// A description of how Rust's channel implementation works
|
||||
//
|
||||
// Channels are supposed to be the basic building block for all other
|
||||
@@ -565,6 +567,7 @@ impl<T: Send> Sender<T> {
|
||||
/// drop(rx);
|
||||
/// assert_eq!(tx.send(1i).err().unwrap().0, 1);
|
||||
/// ```
|
||||
#[stable]
|
||||
pub fn send(&self, t: T) -> Result<(), SendError<T>> {
|
||||
let (new_inner, ret) = match *unsafe { self.inner() } {
|
||||
Flavor::Oneshot(ref p) => {
|
||||
|
||||
@@ -121,10 +121,6 @@ impl Once {
|
||||
unsafe { self.mutex.destroy() }
|
||||
}
|
||||
}
|
||||
|
||||
/// Deprecated
|
||||
#[deprecated = "renamed to `call_once`"]
|
||||
pub fn doit<F>(&'static self, f: F) where F: FnOnce() { self.call_once(f) }
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user