|
Template Numerical Library version\ main:63efd81
|
Atomic wrapper for the host device. More...
#include <TNL/Atomic.h>
Public Member Functions | |
| Atomic () noexcept=default | |
| Default constructor. | |
| Atomic (const Atomic &desired) noexcept | |
| Copy constructor. | |
| T | fetch_max (T value) noexcept |
| Atomically updates the stored value to the maximum of the current value and value. | |
| T | fetch_min (T value) noexcept |
| Atomically updates the stored value to the minimum of the current value and value. | |
| Atomic & | operator= (const Atomic &desired) noexcept |
| Copy assignment operator. | |
| Public Member Functions inherited from std::atomic< T > | |
| T | atomic (T... args) |
| T | compare_exchange_strong (T... args) |
| T | compare_exchange_weak (T... args) |
| T | exchange (T... args) |
| T | fetch_add (T... args) |
| T | fetch_and (T... args) |
| T | fetch_or (T... args) |
| T | fetch_sub (T... args) |
| T | fetch_xor (T... args) |
| T | is_lock_free (T... args) |
| T | load (T... args) |
| T | operator T (T... args) |
| T | operator&= (T... args) |
| T | operator++ (T... args) |
| T | operator++(int) (T... args) |
| T | operator+= (T... args) |
| T | operator-- (T... args) |
| T | operator--(int) (T... args) |
| T | operator-= (T... args) |
| T | operator= (T... args) |
| T | operator^= (T... args) |
| T | operator|= (T... args) |
| T | store (T... args) |
Additional Inherited Members | |
| Public Attributes inherited from std::atomic< T > | |
| T | ptr |
| STL member. | |
Atomic wrapper for the host device.
Extends std::atomic<T> with copyability and atomic fetch_max / fetch_min operations. The copy operations are not atomic; they synchronize only with respect to one or the other object.