QAtomicPointer< T > Class Template Reference

QAtomicPointer< T > Class Template Reference

#include <qatomic.h>

Class Description

template<typename T>
class QAtomicPointer< T >

Definition at line 125 of file qatomic.h.

+ Inheritance diagram for QAtomicPointer< T >:

Public Member Functions

 QAtomicPointer (T *value=0)
 
 QAtomicPointer (const QAtomicPointer< T > &other)
 
QAtomicPointer< T > & operator= (T *value)
 
QAtomicPointer< T > & operator= (const QAtomicPointer< T > &other)
 
- Public Member Functions inherited from QBasicAtomicPointer< T >
bool operator== (T *value) const
 
bool operator!= (T *value) const
 
bool operator! () const
 
 operator T * () const
 
T * operator-> () const
 
QBasicAtomicPointer< T > & operator= (T *value)
 
bool testAndSetRelaxed (T *expectedValue, T *newValue)
 
bool testAndSetAcquire (T *expectedValue, T *newValue)
 
bool testAndSetRelease (T *expectedValue, T *newValue)
 
bool testAndSetOrdered (T *expectedValue, T *newValue)
 
T * fetchAndStoreRelaxed (T *newValue)
 
T * fetchAndStoreAcquire (T *newValue)
 
T * fetchAndStoreRelease (T *newValue)
 
T * fetchAndStoreOrdered (T *newValue)
 
T * fetchAndAddRelaxed (qptrdiff valueToAdd)
 
T * fetchAndAddAcquire (qptrdiff valueToAdd)
 
T * fetchAndAddRelease (qptrdiff valueToAdd)
 
T * fetchAndAddOrdered (qptrdiff valueToAdd)
 

Additional Inherited Members

- Static Public Member Functions inherited from QBasicAtomicPointer< T >
static bool isTestAndSetNative ()
 
static bool isTestAndSetWaitFree ()
 
static bool isFetchAndStoreNative ()
 
static bool isFetchAndStoreWaitFree ()
 
static bool isFetchAndAddNative ()
 
static bool isFetchAndAddWaitFree ()
 
- Public Attributes inherited from QBasicAtomicPointer< T >
union {
   T *volatile   _q_value
 
   qint64 volatile   _q_value_integral
 
}; 
 

Constructor & Destructor Documentation

QAtomicPointer ( T *  value = 0)
inline

Definition at line 128 of file qatomic.h.

129  {
130 #ifdef QT_ARCH_PARISC
131  this->_q_lock[0] = this->_q_lock[1] = this->_q_lock[2] = this->_q_lock[3] = -1;
132 #endif
134  }
GLsizei const GLfloat * value
Definition: GLee.h:1742
QAtomicPointer ( const QAtomicPointer< T > &  other)
inline

Definition at line 135 of file qatomic.h.

136  {
137 #ifdef QT_ARCH_PARISC
138  this->_q_lock[0] = this->_q_lock[1] = this->_q_lock[2] = this->_q_lock[3] = -1;
139 #endif
141  }
T *volatile _q_value
Definition: qbasicatomic.h:139

Member Function Documentation

QAtomicPointer<T>& operator= ( T *  value)
inline

Definition at line 143 of file qatomic.h.

144  {
146  return *this;
147  }
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
GLsizei const GLfloat * value
Definition: GLee.h:1742
QAtomicPointer<T>& operator= ( const QAtomicPointer< T > &  other)
inline

Definition at line 149 of file qatomic.h.

150  {
152  return *this;
153  }
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red

The documentation for this class was generated from the following file: