pub fn apply(
op: AtomicOp,
old: u32,
expected: Option<u32>,
value: u32,
) -> Result<(u32, u32), Error>Expand description
Apply one sequentially consistent atomic operation.
§Errors
Returns Error::Interp if AtomicOp::CompareExchange is
invoked without an expected value.