QAtomicInt Class Reference

QAtomicInt Class Reference

#include <qatomic.h>

Class Description

Definition at line 55 of file qatomic.h.

+ Inheritance diagram for QAtomicInt:

Public Member Functions

 QAtomicInt (int value=0)
 
 QAtomicInt (const QAtomicInt &other)
 
QAtomicIntoperator= (int value)
 
QAtomicIntoperator= (const QAtomicInt &other)
 
- Public Member Functions inherited from QBasicAtomicInt
bool operator== (int value) const
 
bool operator!= (int value) const
 
bool operator! () const
 
 operator int () const
 
QBasicAtomicIntoperator= (int value)
 
bool ref ()
 
bool deref ()
 
bool testAndSetRelaxed (int expectedValue, int newValue)
 
bool testAndSetAcquire (int expectedValue, int newValue)
 
bool testAndSetRelease (int expectedValue, int newValue)
 
bool testAndSetOrdered (int expectedValue, int newValue)
 
int fetchAndStoreRelaxed (int newValue)
 
int fetchAndStoreAcquire (int newValue)
 
int fetchAndStoreRelease (int newValue)
 
int fetchAndStoreOrdered (int newValue)
 
int fetchAndAddRelaxed (int valueToAdd)
 
int fetchAndAddAcquire (int valueToAdd)
 
int fetchAndAddRelease (int valueToAdd)
 
int fetchAndAddOrdered (int valueToAdd)
 

Additional Inherited Members

- Static Public Member Functions inherited from QBasicAtomicInt
static bool isReferenceCountingNative ()
 
static bool isReferenceCountingWaitFree ()
 
static bool isTestAndSetNative ()
 
static bool isTestAndSetWaitFree ()
 
static bool isFetchAndStoreNative ()
 
static bool isFetchAndStoreWaitFree ()
 
static bool isFetchAndAddNative ()
 
static bool isFetchAndAddWaitFree ()
 
- Public Attributes inherited from QBasicAtomicInt
union {
   volatile long   _q_value
 
}; 
 

Constructor & Destructor Documentation

QAtomicInt ( int  value = 0)
inline

Definition at line 58 of file qatomic.h.

59  {
60 #ifdef QT_ARCH_PARISC
61  this->_q_lock[0] = this->_q_lock[1] = this->_q_lock[2] = this->_q_lock[3] = -1;
62 #endif
63  _q_value = value;
64  }
volatile long _q_value
Definition: qbasicatomic.h:61
GLsizei const GLfloat * value
Definition: GLee.h:1742
QAtomicInt ( const QAtomicInt other)
inline

Definition at line 65 of file qatomic.h.

66  {
67 #ifdef QT_ARCH_PARISC
68  this->_q_lock[0] = this->_q_lock[1] = this->_q_lock[2] = this->_q_lock[3] = -1;
69 #endif
70  _q_value = other._q_value;
71  }
volatile long _q_value
Definition: qbasicatomic.h:61

Member Function Documentation

QAtomicInt& operator= ( int  value)
inline

Definition at line 73 of file qatomic.h.

74  {
75  (void) QBasicAtomicInt::operator=(value);
76  return *this;
77  }
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
GLsizei const GLfloat * value
Definition: GLee.h:1742
QAtomicInt& operator= ( const QAtomicInt other)
inline

Definition at line 79 of file qatomic.h.

80  {
81  (void) QBasicAtomicInt::operator=(other);
82  return *this;
83  }
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red

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