ATLAS Offline Software
Namespaces | Functions
atomic_bounded_decrement.h File Reference

Atomically decrement a value with a lower bound. More...

#include "CxxUtils/stall.h"
#include <atomic>
Include dependency graph for atomic_bounded_decrement.h:

Go to the source code of this file.

Namespaces

 CxxUtils
 

Functions

template<class T >
CxxUtils::atomic_bounded_decrement (std::atomic< T > *a, T bound=0, T decr=1, std::memory_order memorder=std::memory_order_seq_cst)
 Atomically decrement a value with a lower bound. More...
 

Detailed Description

Atomically decrement a value with a lower bound.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Jan, 2023

Definition in file atomic_bounded_decrement.h.