Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
»

compare_and_set

concur.atomic.compare_and_set

(expected concur.atomic.T, new_value concur.atomic.T)
 => 
bool
Perform a bit-wise comparison of the value contained in this atomic and
`expected`. In case both values are equal, replace this value with `new_value`.

returns true, if successful
0.094dev (2025-07-10 15:41:47 GIT hash eafa42ae743de61b62f958948d7abb5fada7756f built by fridi@fzen)