alloc/sync.rs
1#![stable(feature = "rust1", since = "1.0.0")]
2
3//! Thread-safe reference-counting pointers.
4//!
5//! See the [`Arc<T>`][Arc] documentation for more details.
6//!
7//! **Note**: This module is only available on platforms that support atomic
8//! loads and stores of pointers. This may be detected at compile time using
9//! `#[cfg(target_has_atomic = "ptr")]`.
10
11#[unstable(feature = "unique_rc_arc", issue = "112566")]
12pub use crate::rcs::arc::UniqueArc;
13#[stable(feature = "rust1", since = "1.0.0")]
14pub use crate::rcs::arc::{Arc, Weak};