ATLAS Offline Software
Loading...
Searching...
No Matches
atomic_fetch_minmax.h File Reference

Atomic min/max functions. More...

#include "CxxUtils/stall.h"
#include <atomic>
Include dependency graph for atomic_fetch_minmax.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CxxUtils

Functions

template<class 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>
CxxUtils::atomic_fetch_min (std::atomic< T > *a, T v, std::memory_order memorder=std::memory_order_seq_cst)
 Atomically calculate minimum.

Detailed Description

Atomic min/max functions.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Nov, 2017

These add atomic operations for finding the minimum or maximum.

Definition in file atomic_fetch_minmax.h.