OpendTect  6.3
Public Member Functions | List of all members
Threads::Atomic< T > Class Template Reference
Inheritance diagram for Threads::Atomic< T >:
[legend]

Public Member Functions

 Atomic (T val=0)
 
 Atomic (const Atomic< T > &)
 
 ~Atomic ()
 
Atomic< T > & operator= (T nv)
 
Atomic< T > & operator= (const Atomic< T > &)
 
get () const
 
void setIfLarger (T newval)
 
void setIfSmaller (T newval)
 
bool setIfValueIs (T curval, T newval, T *actualvalptr=0)
 

Detailed Description

template<class T>
class Threads::Atomic< T >

Constructor & Destructor Documentation

template<class T>
Threads::Atomic< T >::Atomic ( val = 0)
inline
template<class T>
Threads::Atomic< T >::Atomic ( const Atomic< T > &  val)
inline
template<class T >
Threads::Atomic< T >::~Atomic ( )
inline

Member Function Documentation

template<class T>
T Threads::Atomic< T >::get ( ) const
inline
template<class T>
Threads::Atomic< T > & Threads::Atomic< T >::operator= ( nv)
inline
template<class T>
Threads::Atomic< T > & Threads::Atomic< T >::operator= ( const Atomic< T > &  nv)
inline
template<class T>
void Threads::Atomic< T >::setIfLarger ( newval)
inline

Sets to newval if newval is larger than current value.

template<class T>
void Threads::Atomic< T >::setIfSmaller ( newval)
inline

Sets to newval if newval is smaller than current value.

template<class T>
bool Threads::Atomic< T >::setIfValueIs ( curval,
newval,
T *  actualvalptr = 0 
)
inline

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017