OpendTect-6_4
6.4
|
Atomic instantiated with a pointer. The class really only handles the casting from a void* to a T*. More...
Public Member Functions | |
AtomicPointer (T *newptr=0) | |
bool | setIfEqual (const T *curptr, T *newptr) |
AtomicPointer< T > & | operator= (T *ptr) |
AtomicPointer< T > & | operator= (const AtomicPointer< T > &) |
T * | setToNull () |
T * | exchange (T *newptr) |
operator T * () const | |
T * | operator-> () |
const T * | operator-> () const |
T * | operator+= (int) |
T * | operator-= (int) |
T * | operator++ () |
T * | operator-- () |
T * | operator++ (int) |
T * | operator-- (int) |
const void * | getStorage () const |
Only for debugging. More... | |
Private Member Functions | |
AtomicPointer (const AtomicPointer< T > &) | |
Private Attributes | |
Atomic< T * > | ptr_ |
Atomic instantiated with a pointer. The class really only handles the casting from a void* to a T*.
|
inline |
|
inlineprivate |
|
inline |
|
inline |
Only for debugging.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the 'ptr_' only if its pointer is identical to the pointer in 'curptr'. If the pointer in 'ptr_' is identical to the pointer of 'curptr', function will change 'ptr_' and return true. Otherwise, it will not change 'ptr_', it will return false, and update 'curptr' to the current value of 'ptr'.
|
inline |
Returns the last value of the ptr.
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019