atomic_store

atomic_store#

stdgpu: stdgpu::atomic_store
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ atomic_store()

template<typename T , typename Allocator >
STDGPU_HOST_DEVICE void stdgpu::atomic_store ( atomic< T, Allocator > *  obj,
const typename atomic< T, Allocator >::value_type  desired 
)
noexcept

Replaces the current value with desired.

Parameters
[in]desiredThe value to store to the atomic object
[in]objThe atomic object