Skip to main content

fetch_add_usize

Function fetch_add_usize 

Source
pub fn fetch_add_usize(
    counter: &AtomicU64,
    count: usize,
    order: Ordering,
) -> u64
Expand description

Adds a usize count to an atomic u64 counter, saturating the count at u64::MAX.

Returns the previous value; the counter itself wraps as fetch_add does.