pub struct OSAtomicI64 { /* private fields */ }Expand description
Safe wrapper around a 64-bit legacy OSAtomic value.
Implementations§
Source§impl OSAtomicI64
impl OSAtomicI64
pub fn new(value: i64) -> Self
pub fn load(&self) -> i64
pub fn store(&self, value: i64)
pub fn add(&self, amount: i64) -> i64
pub fn add_barrier(&self, amount: i64) -> i64
pub fn increment(&self) -> i64
pub fn increment_barrier(&self) -> i64
pub fn decrement(&self) -> i64
pub fn decrement_barrier(&self) -> i64
pub fn compare_and_swap(&self, old_value: i64, new_value: i64) -> bool
pub fn compare_and_swap_barrier(&self, old_value: i64, new_value: i64) -> bool
Trait Implementations§
Source§impl Drop for OSAtomicI64
impl Drop for OSAtomicI64
Auto Trait Implementations§
impl Freeze for OSAtomicI64
impl RefUnwindSafe for OSAtomicI64
impl !Send for OSAtomicI64
impl !Sync for OSAtomicI64
impl Unpin for OSAtomicI64
impl UnsafeUnpin for OSAtomicI64
impl UnwindSafe for OSAtomicI64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more