summaryrefslogtreecommitdiffstats
path: root/src/corelib/arch/qatomic_armv5.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-08-03 20:02:03 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-07 14:32:51 +0200
commit1dca602122d551475354fed2a2673a0f61cf618f (patch)
tree56159fe1534dbfe06f7430d4f1664e5eb24b61e6 /src/corelib/arch/qatomic_armv5.h
parent49278dc5a77b84c06d2456a4eafde39e6cae735c (diff)
Add a T parameter to the memory barrier functions in atomics.
This is so we can insert valgrind (helgrind) annotation macros. They require the actual address of the variable to work. Change-Id: I988f6a46385ad58143c53ad34b6cf0f58be2cdb8 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/arch/qatomic_armv5.h')
-rw-r--r--src/corelib/arch/qatomic_armv5.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/arch/qatomic_armv5.h b/src/corelib/arch/qatomic_armv5.h
index b3136fe575..210fbc1931 100644
--- a/src/corelib/arch/qatomic_armv5.h
+++ b/src/corelib/arch/qatomic_armv5.h
@@ -95,7 +95,8 @@ template <int size> struct QBasicAtomicOps: QGenericAtomicOps<QBasicAtomicOps<si
kernel_dmb();
}
- static void orderedMemoryFence() { _q_dmb(); }
+ template <typename T>
+ static void orderedMemoryFence(const T &) { _q_dmb(); }
template <typename T> static bool ref(T &_q_value);
template <typename T> static bool deref(T &_q_value);