Document AtomicPtr bit validity

This commit is contained in:
Joshua Liebow-Feeser 2024-03-03 08:04:41 -08:00 committed by GitHub
parent db34b082c0
commit 00d21c91f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,7 +272,7 @@ unsafe impl Sync for AtomicBool {}
/// A raw pointer type which can be safely shared between threads.
///
/// This type has the same in-memory representation as a `*mut T`.
/// This type has the same memory layout and bit validity as a `*mut T`.
///
/// **Note**: This type is only available on platforms that support atomic
/// loads and stores of pointers. Its size depends on the target pointer's size.