atomic_store_explicit

atomic_store_explicit#

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

◆ atomic_store_explicit()

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

Replaces the current value with desired.

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