Skip to content

add atomic exchange operation

Simon Hudon requested to merge simonh/iris:atomic-exchange into master

This merge request adds an atomic exchange operation analogous to Rust's std::sync::atomic::swap (doc) and C++'s std::atomic::exchange (doc).

Xchg x y, in one step, reads the value at location x and replaces it with the value of y.

Edited by Ralf Jung

Merge request reports