Replaces the value in the atomic integer by a new one with acquire-release semantics.
impl AtomicU16 {
fn exchange_acquire_release(&self, val: u16) -> u16
}| Name | Description |
|---|---|
| val | The value to be stored in the atomic integer. |
Returns the previous value.