42 #ifndef QATOMIC_PARISC_H
43 #define QATOMIC_PARISC_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>
190 return originalValue;
210 template <
typename T>
214 if (_q_value == expectedValue) {
223 template <
typename T>
226 return testAndSetOrdered(expectedValue, newValue);
229 template <
typename T>
232 return testAndSetOrdered(expectedValue, newValue);
235 template <
typename T>
238 return testAndSetOrdered(expectedValue, newValue);
243 template <
typename T>
247 T *returnValue = (_q_value);
253 template <
typename T>
256 return fetchAndStoreOrdered(newValue);
259 template <
typename T>
262 return fetchAndStoreOrdered(newValue);
265 template <
typename T>
268 return fetchAndStoreOrdered(newValue);
273 template <
typename T>
277 T *returnValue = (_q_value);
278 _q_value += valueToAdd;
283 template <
typename T>
286 return fetchAndAddOrdered(valueToAdd);
289 template <
typename T>
292 return fetchAndAddOrdered(valueToAdd);
295 template <
typename T>
298 return fetchAndAddOrdered(valueToAdd);
305 #endif // QATOMIC_PARISC_H
int fetchAndStoreRelaxed(int newValue)
bool testAndSetRelease(int expectedValue, int newValue)
static bool isFetchAndAddNative()
T * fetchAndAddAcquire(qptrdiff valueToAdd)
T * fetchAndAddOrdered(qptrdiff valueToAdd)
static bool isReferenceCountingNative()
int fetchAndAddRelaxed(int valueToAdd)
T * fetchAndStoreAcquire(T *newValue)
T * fetchAndAddRelease(qptrdiff valueToAdd)
int fetchAndAddAcquire(int valueToAdd)
static bool isReferenceCountingWaitFree()
T * fetchAndAddRelaxed(qptrdiff valueToAdd)
static bool isFetchAndAddNative()
bool testAndSetOrdered(T *expectedValue, T *newValue)
bool testAndSetAcquire(int expectedValue, int newValue)
static bool isFetchAndStoreNative()
#define QT_BEGIN_NAMESPACE
static bool isTestAndSetNative()
static bool isTestAndSetNative()
static bool isFetchAndStoreNative()
T * fetchAndStoreRelaxed(T *newValue)
static bool isFetchAndAddWaitFree()
bool testAndSetRelaxed(int expectedValue, int newValue)
T * fetchAndStoreRelease(T *newValue)
bool testAndSetRelease(T *expectedValue, T *newValue)
static bool isFetchAndStoreWaitFree()
static bool isTestAndSetWaitFree()
bool testAndSetAcquire(T *expectedValue, T *newValue)
static bool isFetchAndAddWaitFree()
T * fetchAndStoreOrdered(T *newValue)
static bool isFetchAndStoreWaitFree()
bool testAndSetRelaxed(T *expectedValue, T *newValue)
int fetchAndStoreAcquire(int newValue)
static bool isTestAndSetWaitFree()
bool testAndSetOrdered(int expectedValue, int newValue)
int fetchAndAddOrdered(int valueToAdd)
int fetchAndStoreOrdered(int newValue)
Q_CORE_EXPORT void q_atomic_unlock(int *lock)
int fetchAndAddRelease(int valueToAdd)
Q_CORE_EXPORT void q_atomic_lock(int *lock)
int fetchAndStoreRelease(int newValue)