![]() |
ATLAS Offline Software
|
Atomic min/max functions. More...
Go to the source code of this file.
Namespaces | |
| namespace | CxxUtils |
Functions | |
| template<class T> | |
| T | CxxUtils::atomic_fetch_max (std::atomic< T > *a, T v, std::memory_order memorder=std::memory_order_seq_cst) |
| Atomically calculate maximum. | |
| template<class T> | |
| T | CxxUtils::atomic_fetch_min (std::atomic< T > *a, T v, std::memory_order memorder=std::memory_order_seq_cst) |
| Atomically calculate minimum. | |
Atomic min/max functions.
These add atomic operations for finding the minimum or maximum.
Definition in file atomic_fetch_minmax.h.