Provides a collection of tools around QAtomicInt and QAtomicPointer.  
 More...
#include <qttools/core/qatomic_utils.h>
 | 
| static int  | loadRelaxed (const QAtomicInt &atomInt) | 
|   | 
| static void  | storeRelaxed (QAtomicInt *atomInt, int newVal) | 
|   | 
| static void  | storeRelease (QAtomicInt *atomInt, int newVal) | 
|   | 
| template<typename T >  | 
| static T *  | loadRelaxed (const QAtomicPointer< T > &atomPtr) | 
|   | 
| template<typename T >  | 
| static void  | storeRelaxed (QAtomicPointer< T > *atomPtr, T *newPtr) | 
|   | 
| template<typename T >  | 
| static void  | storeRelease (QAtomicPointer< T > *atomPtr, T *newPtr) | 
|   | 
Provides a collection of tools around QAtomicInt and QAtomicPointer. 
QAtomicUtils mainly provides common operations for QAtomicInt and QAtomicPointer. It is useful when portability for Qt4 / Qt5 is required because the API of these two classes have changed. 
 
  
  
      
        
          | int qtcore::QAtomicUtils::loadRelaxed  | 
          ( | 
          const QAtomicInt &  | 
          atomInt | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
template<typename T > 
  
  
      
        
          | T * qtcore::QAtomicUtils::loadRelaxed  | 
          ( | 
          const QAtomicPointer< T > &  | 
          atomPtr | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | void qtcore::QAtomicUtils::storeRelaxed  | 
          ( | 
          QAtomicInt *  | 
          atomInt,  | 
         
        
           | 
           | 
          int  | 
          newVal  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
template<typename T > 
  
  
      
        
          | void qtcore::QAtomicUtils::storeRelaxed  | 
          ( | 
          QAtomicPointer< T > *  | 
          atomPtr,  | 
         
        
           | 
           | 
          T *  | 
          newPtr  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | void qtcore::QAtomicUtils::storeRelease  | 
          ( | 
          QAtomicInt *  | 
          atomInt,  | 
         
        
           | 
           | 
          int  | 
          newVal  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
template<typename T > 
  
  
      
        
          | void qtcore::QAtomicUtils::storeRelease  | 
          ( | 
          QAtomicPointer< T > *  | 
          atomPtr,  | 
         
        
           | 
           | 
          T *  | 
          newPtr  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
The documentation for this class was generated from the following files: