Add feature gate #![atomic_bool_fetch_not]
This commit is contained in:
parent
dcfe92e193
commit
7d5f236c3d
1 changed files with 1 additions and 1 deletions
|
@ -883,7 +883,7 @@ impl AtomicBool {
|
|||
/// assert_eq!(foo.load(Ordering::SeqCst), true);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[unstable(feature = "atomic_bool_fetch_not", issue = "98485")]
|
||||
#[cfg(target_has_atomic = "8")]
|
||||
pub fn fetch_not(&self, order: Ordering) -> bool {
|
||||
self.fetch_xor(true, order)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue