42 #if !defined(Q_OS_SYMBIAN) || (defined(Q_OS_SYMBIAN) && !defined(Q_CC_RVCT)) 44 #include "qplatformdefs.h" 46 #include <QtCore/qatomic.h> 54 bool returnValue =
false;
56 if (*_q_value == expectedValue) {
69 returnValue = *_q_value;
80 returnValue = *_q_value;
81 *_q_value += valueToAdd;
91 bool returnValue =
false;
93 if (*_q_value == expectedValue) {
106 returnValue = *_q_value;
107 *_q_value = newValue;
117 returnValue = *_q_value;
118 *_q_value =
reinterpret_cast<char *
>(returnValue) + valueToAdd;
#define QT_END_NAMESPACE
This macro expands to.
Q_CORE_EXPORT void * QBasicAtomicPointer_fetchAndAddOrdered(void *volatile *_q_value, qptrdiff valueToAdd)
Q_CORE_EXPORT int QBasicAtomicInt_fetchAndAddOrdered(volatile int *_q_value, int valueToAdd)
Q_CORE_EXPORT bool QBasicAtomicInt_testAndSetOrdered(volatile int *_q_value, int expectedValue, int newValue)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QIntegerForSizeof< void * >::Signed qptrdiff
Q_CORE_EXPORT bool QBasicAtomicPointer_testAndSetOrdered(void *volatile *_q_value, void *expectedValue, void *newValue)
static pthread_mutex_t qAtomicMutex
Q_CORE_EXPORT int QBasicAtomicInt_fetchAndStoreOrdered(volatile int *_q_value, int newValue)
Q_CORE_EXPORT void * QBasicAtomicPointer_fetchAndStoreOrdered(void *volatile *_q_value, void *newValue)