Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QAtomicInt Class Reference

\inmodule QtCore More...

#include <qatomic.h>

+ Inheritance diagram for QAtomicInt:
+ Collaboration diagram for QAtomicInt:

Public Member Functions

constexpr QAtomicInt (int value=0) noexcept
 Constructs a QAtomicInt with the given value.
 
- Public Member Functions inherited from QAtomicInteger< int >
constexpr QAtomicInteger (int value=0) noexcept
 Constructs a QAtomicInteger with the given value.
 
 QAtomicInteger (const QAtomicInteger &other) noexcept
 Constructs a copy of other.
 
QAtomicIntegeroperator= (const QAtomicInteger &other) noexcept
 Assigns other to this QAtomicInteger and returns a reference to this QAtomicInteger.
 
- Public Member Functions inherited from QBasicAtomicInteger< int >
int loadRelaxed () const noexcept
 
void storeRelaxed (int newValue) noexcept
 
int loadAcquire () const noexcept
 
void storeRelease (int newValue) noexcept
 
 operator int () const noexcept
 
int operator= (int newValue) noexcept
 
bool ref () noexcept
 
bool deref () noexcept
 
bool testAndSetRelaxed (int expectedValue, int newValue) noexcept
 
bool testAndSetAcquire (int expectedValue, int newValue) noexcept
 
bool testAndSetRelease (int expectedValue, int newValue) noexcept
 
bool testAndSetOrdered (int expectedValue, int newValue) noexcept
 
bool testAndSetRelaxed (int expectedValue, int newValue, int &currentValue) noexcept
 
bool testAndSetAcquire (int expectedValue, int newValue, int &currentValue) noexcept
 
bool testAndSetRelease (int expectedValue, int newValue, int &currentValue) noexcept
 
bool testAndSetOrdered (int expectedValue, int newValue, int &currentValue) noexcept
 
int fetchAndStoreRelaxed (int newValue) noexcept
 
int fetchAndStoreAcquire (int newValue) noexcept
 
int fetchAndStoreRelease (int newValue) noexcept
 
int fetchAndStoreOrdered (int newValue) noexcept
 
int fetchAndAddRelaxed (int valueToAdd) noexcept
 
int fetchAndAddAcquire (int valueToAdd) noexcept
 
int fetchAndAddRelease (int valueToAdd) noexcept
 
int fetchAndAddOrdered (int valueToAdd) noexcept
 
int fetchAndSubRelaxed (int valueToAdd) noexcept
 
int fetchAndSubAcquire (int valueToAdd) noexcept
 
int fetchAndSubRelease (int valueToAdd) noexcept
 
int fetchAndSubOrdered (int valueToAdd) noexcept
 
int fetchAndAndRelaxed (int valueToAdd) noexcept
 
int fetchAndAndAcquire (int valueToAdd) noexcept
 
int fetchAndAndRelease (int valueToAdd) noexcept
 
int fetchAndAndOrdered (int valueToAdd) noexcept
 
int fetchAndOrRelaxed (int valueToAdd) noexcept
 
int fetchAndOrAcquire (int valueToAdd) noexcept
 
int fetchAndOrRelease (int valueToAdd) noexcept
 
int fetchAndOrOrdered (int valueToAdd) noexcept
 
int fetchAndXorRelaxed (int valueToAdd) noexcept
 
int fetchAndXorAcquire (int valueToAdd) noexcept
 
int fetchAndXorRelease (int valueToAdd) noexcept
 
int fetchAndXorOrdered (int valueToAdd) noexcept
 
int operator++ () noexcept
 
int operator++ (int) noexcept
 
int operator-- () noexcept
 
int operator-- (int) noexcept
 
int operator+= (int v) noexcept
 
int operator-= (int v) noexcept
 
int operator&= (int v) noexcept
 
int operator|= (int v) noexcept
 
int operator^= (int v) noexcept
 
 QBasicAtomicInteger ()=default
 
constexpr QBasicAtomicInteger (int value) noexcept
 
 QBasicAtomicInteger (const QBasicAtomicInteger &)=delete
 
QBasicAtomicIntegeroperator= (const QBasicAtomicInteger &)=delete
 
QBasicAtomicIntegeroperator= (const QBasicAtomicInteger &) volatile=delete
 
int loadRelaxed () const noexcept
 
void storeRelaxed (int newValue) noexcept
 
int loadAcquire () const noexcept
 
void storeRelease (int newValue) noexcept
 
 operator int () const noexcept
 
int operator= (int newValue) noexcept
 
QBasicAtomicIntegeroperator= (const QBasicAtomicInteger &)=delete
 
QBasicAtomicIntegeroperator= (const QBasicAtomicInteger &) volatile=delete
 
bool ref () noexcept
 
bool deref () noexcept
 
bool testAndSetRelaxed (int expectedValue, int newValue) noexcept
 
bool testAndSetRelaxed (int expectedValue, int newValue, int &currentValue) noexcept
 
bool testAndSetAcquire (int expectedValue, int newValue) noexcept
 
bool testAndSetAcquire (int expectedValue, int newValue, int &currentValue) noexcept
 
bool testAndSetRelease (int expectedValue, int newValue) noexcept
 
bool testAndSetRelease (int expectedValue, int newValue, int &currentValue) noexcept
 
bool testAndSetOrdered (int expectedValue, int newValue) noexcept
 
bool testAndSetOrdered (int expectedValue, int newValue, int &currentValue) noexcept
 
int fetchAndStoreRelaxed (int newValue) noexcept
 
int fetchAndStoreAcquire (int newValue) noexcept
 
int fetchAndStoreRelease (int newValue) noexcept
 
int fetchAndStoreOrdered (int newValue) noexcept
 
int fetchAndAddRelaxed (int valueToAdd) noexcept
 
int fetchAndAddAcquire (int valueToAdd) noexcept
 
int fetchAndAddRelease (int valueToAdd) noexcept
 
int fetchAndAddOrdered (int valueToAdd) noexcept
 
int fetchAndSubRelaxed (int valueToAdd) noexcept
 
int fetchAndSubAcquire (int valueToAdd) noexcept
 
int fetchAndSubRelease (int valueToAdd) noexcept
 
int fetchAndSubOrdered (int valueToAdd) noexcept
 
int fetchAndAndRelaxed (int valueToAdd) noexcept
 
int fetchAndAndAcquire (int valueToAdd) noexcept
 
int fetchAndAndRelease (int valueToAdd) noexcept
 
int fetchAndAndOrdered (int valueToAdd) noexcept
 
int fetchAndOrRelaxed (int valueToAdd) noexcept
 
int fetchAndOrAcquire (int valueToAdd) noexcept
 
int fetchAndOrRelease (int valueToAdd) noexcept
 
int fetchAndOrOrdered (int valueToAdd) noexcept
 
int fetchAndXorRelaxed (int valueToAdd) noexcept
 
int fetchAndXorAcquire (int valueToAdd) noexcept
 
int fetchAndXorRelease (int valueToAdd) noexcept
 
int fetchAndXorOrdered (int valueToAdd) noexcept
 
int operator++ () noexcept
 
int operator++ (int) noexcept
 
int operator-- () noexcept
 
int operator-- (int) noexcept
 
int operator+= (int v) noexcept
 
int operator-= (int v) noexcept
 
int operator&= (int v) noexcept
 
int operator|= (int v) noexcept
 
int operator^= (int v) noexcept
 
 QBasicAtomicInteger ()=default
 
constexpr QBasicAtomicInteger (int value) noexcept
 
 QBasicAtomicInteger (const QBasicAtomicInteger &)=delete
 

Additional Inherited Members

- Public Types inherited from QBasicAtomicInteger< int >
typedef int Type
 
typedef QAtomicOps< int > Ops
 
- Static Public Member Functions inherited from QBasicAtomicInteger< int >
static constexpr bool isReferenceCountingNative () noexcept
 
static constexpr bool isReferenceCountingWaitFree () noexcept
 
static constexpr bool isTestAndSetNative () noexcept
 
static constexpr bool isTestAndSetWaitFree () noexcept
 
static constexpr bool isFetchAndStoreNative () noexcept
 
static constexpr bool isFetchAndStoreWaitFree () noexcept
 
static constexpr bool isFetchAndAddNative () noexcept
 
static constexpr bool isFetchAndAddWaitFree () noexcept
 
static constexpr bool isReferenceCountingNative () noexcept
 
static constexpr bool isReferenceCountingWaitFree () noexcept
 
static constexpr bool isTestAndSetNative () noexcept
 
static constexpr bool isTestAndSetWaitFree () noexcept
 
static constexpr bool isFetchAndStoreNative () noexcept
 
static constexpr bool isFetchAndStoreWaitFree () noexcept
 
static constexpr bool isFetchAndAddNative () noexcept
 
static constexpr bool isFetchAndAddWaitFree () noexcept
 
- Public Attributes inherited from QBasicAtomicInteger< int >
Ops::Type _q_value
 
Ops::Type _q_value
 

Detailed Description

\inmodule QtCore

The QAtomicInt class provides platform-independent atomic operations on int.

Since
4.4

This class is a equivalent to {QAtomicInteger<int>}. All other functionality is equivalent. Please see that class for more information.

See also
QAtomicInteger, QAtomicPointer

Definition at line 111 of file qatomic.h.

Constructor & Destructor Documentation

◆ QAtomicInt()

QAtomicInt::QAtomicInt ( int value = 0)
inlineconstexprnoexcept

Constructs a QAtomicInt with the given value.

Definition at line 117 of file qatomic.h.

Referenced by QDBusMessagePrivate::QDBusMessagePrivate(), QSharedData::QSharedData(), and QSharedData::QSharedData().

+ Here is the caller graph for this function:

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