42 #ifndef QATOMIC_GENERIC_H 43 #define QATOMIC_GENERIC_H 49 #define Q_ATOMIC_INT_REFERENCE_COUNTING_IS_NOT_NATIVE 56 #define Q_ATOMIC_INT_TEST_AND_SET_IS_NOT_NATIVE 63 #define Q_ATOMIC_INT_FETCH_AND_STORE_IS_NOT_NATIVE 70 #define Q_ATOMIC_INT_FETCH_AND_ADD_IS_NOT_NATIVE 77 #define Q_ATOMIC_POINTER_TEST_AND_SET_IS_NOT_NATIVE 86 #define Q_ATOMIC_POINTER_FETCH_AND_STORE_IS_NOT_NATIVE 95 #define Q_ATOMIC_POINTER_FETCH_AND_ADD_IS_NOT_NATIVE 100 template <
typename T>
192 template <
typename T>
195 union { T *
volatile * typed;
void *
volatile * voidp; } pointer;
200 template <
typename T>
206 template <
typename T>
212 template <
typename T>
220 template <
typename T>
223 union { T *
volatile * typed;
void *
volatile * voidp; } pointer;
224 union { T *typed;
void *voidp; } returnValue;
227 return returnValue.typed;
230 template <
typename T>
236 template <
typename T>
242 template <
typename T>
250 template <
typename T>
253 union { T *
volatile *typed;
void *
volatile *voidp; } pointer;
254 union { T *typed;
void *voidp; } returnValue;
257 return returnValue.typed;
260 template <
typename T>
266 template <
typename T>
272 template <
typename T>
282 #endif // QATOMIC_GENERIC_H static bool isFetchAndStoreNative()
static bool isTestAndSetNative()
int fetchAndStoreRelease(int newValue)
static bool isReferenceCountingNative()
T * fetchAndAddRelaxed(qptrdiff valueToAdd)
#define QT_END_NAMESPACE
This macro expands to.
static bool isFetchAndAddNative()
static bool isTestAndSetNative()
Q_CORE_EXPORT bool QBasicAtomicInt_testAndSetOrdered(volatile int *, int, int)
static bool isFetchAndAddNative()
T * fetchAndStoreRelease(T *newValue)
Q_CORE_EXPORT int QBasicAtomicInt_fetchAndStoreOrdered(volatile int *, int)
static bool isTestAndSetWaitFree()
T * fetchAndAddRelease(qptrdiff valueToAdd)
bool testAndSetOrdered(T *expectedValue, T *newValue)
int fetchAndAddAcquire(int valueToAdd)
T * fetchAndAddAcquire(qptrdiff valueToAdd)
int fetchAndStoreRelaxed(int newValue)
T * fetchAndAddOrdered(qptrdiff valueToAdd)
bool testAndSetAcquire(int expectedValue, int newValue)
bool testAndSetRelaxed(int expectedValue, int newValue)
#define QT_BEGIN_NAMESPACE
This macro expands to.
int fetchAndStoreAcquire(int newValue)
QIntegerForSizeof< void * >::Signed qptrdiff
T * fetchAndStoreOrdered(T *newValue)
#define Q_INLINE_TEMPLATE
Q_CORE_EXPORT void * QBasicAtomicPointer_fetchAndAddOrdered(void *volatile *, qptrdiff)
int fetchAndAddRelease(int valueToAdd)
bool testAndSetOrdered(int expectedValue, int newValue)
T * fetchAndStoreAcquire(T *newValue)
static bool isFetchAndStoreWaitFree()
static bool isTestAndSetWaitFree()
static bool isReferenceCountingWaitFree()
int fetchAndAddOrdered(int valueToAdd)
static bool isFetchAndStoreWaitFree()
static bool isFetchAndAddWaitFree()
static bool isFetchAndAddWaitFree()
bool testAndSetRelease(int expectedValue, int newValue)
Q_CORE_EXPORT bool QBasicAtomicPointer_testAndSetOrdered(void *volatile *, void *, void *)
int fetchAndAddRelaxed(int valueToAdd)
int fetchAndStoreOrdered(int newValue)
bool testAndSetRelaxed(T *expectedValue, T *newValue)
Q_CORE_EXPORT int QBasicAtomicInt_fetchAndAddOrdered(volatile int *, int)
bool testAndSetRelease(T *expectedValue, T *newValue)
Q_CORE_EXPORT void * QBasicAtomicPointer_fetchAndStoreOrdered(void *volatile *, void *)
T * fetchAndStoreRelaxed(T *newValue)
static bool isFetchAndStoreNative()
bool testAndSetAcquire(T *expectedValue, T *newValue)