Skip to main content

runtime_cas_boxed_array

Function runtime_cas_boxed_array 

Source
pub extern "C" fn runtime_cas_boxed_array(
    arr: i64,
    idx: i64,
    expected: i64,
    new: i64,
) -> i64
Expand description

CAS on a boxed array slot: compare-and-swap arr[idx]. Returns the old value. If old == expected, writes new.