atomic_store
¶
Defined in header <Kokkos_Atomic.hpp>
which is included from <Kokkos_Core.hpp>
Usage¶
atomic_store(&obj, desired);
Atomically replaces the current value of obj
with desired
.
Description¶
See also¶
atomic_load: atomically obtains the value of the referenced object
atomic_exchange: atomically replaces the value of the referenced object and obtains the value held previously