summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/arch/qatomic_armv5.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/arch/qatomic_armv5.h b/src/corelib/arch/qatomic_armv5.h
index 58af413..e3acd12 100644
--- a/src/corelib/arch/qatomic_armv5.h
+++ b/src/corelib/arch/qatomic_armv5.h
@@ -232,6 +232,7 @@ inline int QBasicAtomicInt::fetchAndStoreOrdered(int newValue)
: "r"(newValue), "r"(&_q_value)
: "cc", "memory");
#else
+ int count = 0;
while (q_atomic_swp(&q_atomic_lock, ~0) != 0)
qt_atomic_yield(&count);
originalValue=_q_value;
@@ -369,6 +370,7 @@ Q_INLINE_TEMPLATE T *QBasicAtomicPointer<T>::fetchAndStoreOrdered(T *newValue)
: "r"(newValue), "r"(&_q_value)
: "cc", "memory");
#else
+ int count = 0;
while (q_atomic_swp(&q_atomic_lock, ~0) != 0)
qt_atomic_yield(&count);
originalValue=_q_value;