Skip to main content

add_signed

Function add_signed 

Source
fn add_signed(counter: &AtomicUsize, diff: isize)
Expand description

Add a signed diff to counter.

ยงPanics

Panics if the result would be negative, which means a retirement was never matched by an announcement.