FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
qtcore::QAtomicUtils Class Reference

Provides a collection of tools around QAtomicInt and QAtomicPointer. More...

#include <qttools/core/qatomic_utils.h>

Static Public Member Functions

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)
 

Detailed Description

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.

Member Function Documentation

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: