struct Atomic<T>

Description

A wrapper for IAtomicable types to introduce atomic load and store operations. Values of this type are to be stored in buffers or groupshared memory.

All operations take a MemoryOrder parameter which influenced the semantics of the performed operation

All operations take place at the device scope.

Operators +=, -=, &=, |=, ^=, ++, are overloaded to operate on Atomic<T>.

Generic Parameters

T: IAtomicable

Methods