OpendTect
6.6
|
Atomic instantiated with a pointer. The class really only handles the casting from a void* to a T*. More...
Public Member Functions | |
AtomicPointer (const AtomicPointer< T > &)=delete | |
AtomicPointer (T *newptr=0) | |
operator bool () const | |
bool | operator! () const |
T * | operator-> () |
const T * | operator-> () const |
AtomicPointer< T > & | operator= (const AtomicPointer< T > &) |
AtomicPointer< T > & | operator= (T *ptr) |
bool | setIfEqual (const T *curptr, T *newptr) |
T * | setToNull () |
Atomic instantiated with a pointer. The class really only handles the casting from a void* to a T*.
<>
|
inline |
|
inlinedelete |
|
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.
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022