Struct loom::sync::atomic::AtomicU32 [−][src]
pub struct AtomicU32(_);Expand description
Mock implementation of std::sync::atomic::AtomicU32.
Implementations
Get access to a mutable reference to the inner value.
Load the value without any synchronization.
Safety
An unsynchronized atomic load technically always has undefined behavior. However, if the atomic value is not currently visible by other threads, this should always be equivalent to a non-atomic load of an un-shared integer value.
Stores a value into the atomic integer, returning the previous value.
Stores a value into the atomic integer if the current value is the same as the current value.
Stores a value into the atomic if the current value is the same as the current value.
Stores a value into the atomic if the current value is the same as the current value.
Adds to the current value, returning the previous value.
Subtracts from the current value, returning the previous value.
Bitwise “nand” with the current value.
Stores the maximum of the current and provided value, returning the previous value
Stores the minimum of the current and provided value, returning the previous value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AtomicU32
impl UnwindSafe for AtomicU32
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more