Replaces the value in the atomic integer by a new one with sequentially consistent semantics.
impl AtomicUsize {
fn exchange(&self, val: usize) -> usize
}| Name | Description |
|---|---|
| val | The value to be stored in the atomic integer. |
Returns the previous value.