42 #ifndef QATOMIC_SPARC_H 43 #define QATOMIC_SPARC_H 51 #define Q_ATOMIC_INT_REFERENCE_COUNTING_IS_ALWAYS_NATIVE 58 #define Q_ATOMIC_INT_TEST_AND_SET_IS_ALWAYS_NATIVE 59 #define Q_ATOMIC_INT_TEST_AND_SET_IS_WAIT_FREE 66 #define Q_ATOMIC_INT_FETCH_AND_STORE_IS_ALWAYS_NATIVE 67 #define Q_ATOMIC_INT_FETCH_AND_STORE_IS_WAIT_FREE 74 #define Q_ATOMIC_INT_FETCH_AND_ADD_IS_ALWAYS_NATIVE 81 #define Q_ATOMIC_POINTER_TEST_AND_SET_IS_ALWAYS_NATIVE 82 #define Q_ATOMIC_POINTER_TEST_AND_SET_IS_WAIT_FREE 91 #define Q_ATOMIC_POINTER_FETCH_AND_STORE_IS_ALWAYS_NATIVE 92 #define Q_ATOMIC_POINTER_FETCH_AND_STORE_IS_WAIT_FREE 101 #define Q_ATOMIC_POINTER_FETCH_AND_ADD_IS_ALWAYS_NATIVE 103 template <
typename T>
106 template <
typename T>
132 const void *expected,
135 const void *expected,
217 template <
typename T>
223 template <
typename T>
229 template <
typename T>
235 template <
typename T>
241 template <
typename T>
247 template <
typename T>
253 template <
typename T>
259 template <
typename T>
265 template <
typename T>
271 template <
typename T>
278 template <
typename T>
284 template <
typename T>
292 #define Q_ATOMIC_INT_REFERENCE_COUNTING_IS_NOT_NATIVE 299 #define Q_ATOMIC_INT_TEST_AND_SET_IS_NOT_NATIVE 306 #define Q_ATOMIC_INT_FETCH_AND_STORE_IS_ALWAYS_NATIVE 307 #define Q_ATOMIC_INT_FETCH_AND_STORE_IS_WAIT_FREE 314 #define Q_ATOMIC_INT_FETCH_AND_ADD_IS_NOT_NATIVE 321 #define Q_ATOMIC_POINTER_TEST_AND_SET_IS_NOT_NATIVE 323 template <
typename T>
326 template <
typename T>
330 #define Q_ATOMIC_POINTER_FETCH_AND_STORE_IS_ALWAYS_NATIVE 331 #define Q_ATOMIC_POINTER_FETCH_AND_STORE_IS_WAIT_FREE 333 template <
typename T>
336 template <
typename T>
340 #define Q_ATOMIC_POINTER_FETCH_AND_ADD_IS_NOT_NATIVE 342 template <
typename T>
345 template <
typename T>
374 if (val == expectedValue) {
421 return originalValue;
439 template <
typename T>
443 if (val == expectedValue) {
451 template <
typename T>
457 template <
typename T>
463 template <
typename T>
469 template <
typename T>
475 template <
typename T>
481 template <
typename T>
487 template <
typename T>
493 template <
typename T>
498 return originalValue;
501 template <
typename T>
507 template <
typename T>
513 template <
typename T>
525 #endif // QATOMIC_SPARC_H void * q_atomic_fetch_and_add_acquire_ptr(volatile void *ptr, qptrdiff valueToAdd)
static bool isFetchAndStoreNative()
static bool isTestAndSetNative()
int fetchAndStoreRelease(int newValue)
int q_atomic_fetch_and_store_release_ptr(volatile void *ptr, void *newValue)
static bool isReferenceCountingNative()
T * fetchAndAddRelaxed(qptrdiff valueToAdd)
Q_CORE_EXPORT int q_atomic_fetch_and_add_int(volatile int *ptr, int value)
#define QT_END_NAMESPACE
This macro expands to.
static bool isFetchAndAddNative()
static bool isTestAndSetNative()
static bool isFetchAndAddNative()
Q_CORE_EXPORT int q_atomic_test_and_set_acquire_ptr(volatile void *ptr, void *expected, void *newval)
T * fetchAndStoreRelease(T *newValue)
static bool isTestAndSetWaitFree()
int q_atomic_fetch_and_store_release_int(volatile int *ptr, int newValue)
Q_CORE_EXPORT void * q_atomic_fetch_and_add_ptr(volatile void *ptr, int value)
int q_atomic_fetch_and_store_acquire_ptr(volatile void *ptr, void *newValue)
T * fetchAndAddRelease(qptrdiff valueToAdd)
Q_CORE_EXPORT void q_atomic_unlock(volatile void *addr, int value)
bool testAndSetOrdered(T *expectedValue, T *newValue)
int fetchAndAddAcquire(int valueToAdd)
Q_CORE_EXPORT int q_atomic_test_and_set_acquire_int(volatile int *ptr, int expected, int newval)
T * fetchAndAddAcquire(qptrdiff valueToAdd)
int fetchAndStoreRelaxed(int newValue)
T * fetchAndAddOrdered(qptrdiff valueToAdd)
bool testAndSetAcquire(int expectedValue, int newValue)
Q_CORE_EXPORT void * q_atomic_set_ptr(volatile void *ptr, void *newval)
bool testAndSetRelaxed(int expectedValue, int newValue)
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_CORE_EXPORT int q_atomic_fetch_and_add_acquire_int(volatile int *ptr, int value)
Q_CORE_EXPORT int q_atomic_test_and_set_ptr(volatile void *ptr, void *expected, void *newval)
int fetchAndStoreAcquire(int newValue)
Q_CORE_EXPORT int q_atomic_increment(volatile int *ptr)
QIntegerForSizeof< void * >::Signed qptrdiff
Q_CORE_EXPORT int q_atomic_test_and_set_release_int(volatile int *ptr, int expected, int newval)
T * fetchAndStoreOrdered(T *newValue)
#define Q_INLINE_TEMPLATE
Q_CORE_EXPORT int q_atomic_lock_ptr(volatile void *addr)
int fetchAndAddRelease(int valueToAdd)
Q_CORE_EXPORT int q_atomic_fetch_and_add_release_int(volatile int *ptr, int value)
const T * ptr(const T &t)
bool testAndSetOrdered(int expectedValue, int newValue)
T * fetchAndStoreAcquire(T *newValue)
void * q_atomic_fetch_and_add_release_ptr(volatile void *ptr, qptrdiff valueToAdd)
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 int q_atomic_test_and_set_int(volatile int *ptr, int expected, int newval)
Q_CORE_EXPORT int q_atomic_decrement(volatile int *ptr)
int fetchAndAddRelaxed(int valueToAdd)
int fetchAndStoreOrdered(int newValue)
bool testAndSetRelaxed(T *expectedValue, T *newValue)
Q_CORE_EXPORT int q_atomic_set_int(volatile int *ptr, int newval)
Q_CORE_EXPORT int q_atomic_test_and_set_release_ptr(volatile void *ptr, void *expected, void *newval)
bool testAndSetRelease(T *expectedValue, T *newValue)
int q_atomic_fetch_and_store_acquire_int(volatile int *ptr, int newValue)
Q_CORE_EXPORT int q_atomic_lock_int(volatile int *addr)
T * fetchAndStoreRelaxed(T *newValue)
static bool isFetchAndStoreNative()
bool testAndSetAcquire(T *expectedValue, T *newValue)