AtomicValueT template for integral types, all operations are atomic.
More...
#include <AtomicValue.h>
template<class T>
class agx::AtomicValueT< T >
AtomicValueT template for integral types, all operations are atomic.
Definition at line 32 of file AtomicValue.h.
◆ AtomicValueT() [1/2]
◆ AtomicValueT() [2/2]
◆ add()
Add a value.
- Returns
- The previous value
Definition at line 158 of file AtomicValue.h.
◆ compareAndSet()
Compares the current value with a test value and if they are equal the value is replaced by a new value.
- Parameters
-
| test | The value to compare with |
| newValue | The new value |
- Returns
- The previous value
Definition at line 182 of file AtomicValue.h.
◆ dec()
Decrement the value.
- Returns
- The previous value
Definition at line 176 of file AtomicValue.h.
◆ get()
◆ inc()
Increment the value.
- Returns
- The previous value
Definition at line 170 of file AtomicValue.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
Set the value ignoring the previous value, thus avoiding synchronization.
Definition at line 150 of file AtomicValue.h.
◆ set()
Set the value.
- Returns
- The previous value
Definition at line 144 of file AtomicValue.h.
◆ sub()
Subtract a value.
- Returns
- The previous value
Definition at line 164 of file AtomicValue.h.
The documentation for this class was generated from the following file: