|
AGX Dynamics 2.42.3.1
|
AtomicValueT template for integral types, all operations are atomic. More...
#include <AtomicValue.h>
Public Member Functions | |
| AtomicValueT (const agx::AtomicValueT< T > &av) | |
| AtomicValueT (T initialValue=0) | |
| T | add (T value) |
| Add a value. | |
| T | compareAndSet (T test, T newValue) |
| Compares the current value with a test value and if they are equal the value is replaced by a new value. | |
| T | dec () |
| Decrement the value. | |
| T | get () const |
| Get the current value. | |
| T | inc () |
| Increment the value. | |
| AtomicValueT< T > & | operator= (const agx::AtomicValueT< T > &rhs) |
| AtomicValueT< T > & | operator= (T value) |
| Set the value ignoring the previous value, thus avoiding synchronization. | |
| T | set (T value) |
| Set the value. | |
| T | sub (T value) |
| Subtract a value. | |
AtomicValueT template for integral types, all operations are atomic.
Definition at line 30 of file AtomicValue.h.
|
inlineexplicit |
Definition at line 118 of file AtomicValue.h.
|
inline |
Definition at line 123 of file AtomicValue.h.
|
inline |
|
inline |
Compares the current value with a test value and if they are equal the value is replaced by a new value.
| test | The value to compare with |
| newValue | The new value |
Definition at line 180 of file AtomicValue.h.
|
inline |
|
inline |
Get the current value.
Definition at line 136 of file AtomicValue.h.
Referenced by agx::operator<<().
|
inline |
|
inline |
Definition at line 129 of file AtomicValue.h.
|
inline |
Set the value ignoring the previous value, thus avoiding synchronization.
Definition at line 148 of file AtomicValue.h.
|
inline |
|
inline |