File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 3
3
//! Thread-safe reference-counting pointers.
4
4
//!
5
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")]`.
6
10
7
11
use core:: any:: Any ;
8
12
use core:: borrow;
@@ -82,6 +86,11 @@ macro_rules! acquire {
82
86
/// [`Mutex`][mutex], [`RwLock`][rwlock], or one of the [`Atomic`][atomic]
83
87
/// types.
84
88
///
89
+ /// **Note**: This type is only available on platforms that support atomic
90
+ /// loads and stores of pointers, which includes all platforms that support
91
+ /// the `std` crate but not all those which only support [`alloc`](crate).
92
+ /// This may be detected at compile time using `#[cfg(target_has_atomic = "ptr")]`.
93
+ ///
85
94
/// ## Thread Safety
86
95
///
87
96
/// Unlike [`Rc<T>`], `Arc<T>` uses atomic operations for its reference
Original file line number Diff line number Diff line change 1
1
#![ stable( feature = "wake_trait" , since = "1.51.0" ) ]
2
+
2
3
//! Types and Traits for working with asynchronous tasks.
4
+ //!
5
+ //! **Note**: This module is only available on platforms that support atomic
6
+ //! loads and stores of pointers. This may be detected at compile time using
7
+ //! `#[cfg(target_has_atomic = "ptr")]`.
8
+
3
9
use core:: mem:: ManuallyDrop ;
4
10
use core:: task:: { RawWaker , RawWakerVTable , Waker } ;
5
11
You can’t perform that action at this time.
0 commit comments