OpendTect-6_4
6.4
|
Public Member Functions | |
Atomic (T val=0) | |
Atomic (const Atomic &) | |
~Atomic () | |
operator T () const | |
T | get () const |
T | operator= (T v) |
T | operator= (const Atomic< T > &v) |
T | operator+= (T) |
T | operator-= (T) |
T | operator++ () |
T | operator-- () |
T | operator++ (int) |
T | operator-- (int) |
T | exchange (T newval) |
bool | setIfValueIs (T curval, T newval, T *actualvalptr) |
const void * | getStorage () const |
Only for debugging. More... | |
template<> | |
bool | setIfValueIs (int curval, int newval, int *actualvalptr) |
Private Attributes | |
volatile T | val_ |
|
inline |
|
inline |
|
inline |
|
inline |
Returns old value.
|
inline |
|
inline |
Only for debugging.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the 'val_' only if its value is currently the value of 'curval'. If the value in 'val_' is identical to the value of 'curval', function will change 'val_' and return true. Otherwise, it will not change 'val_', it will return false, and update set the content of 'actualvalptr' to the current value of 'val_'.
|
inline |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019