diff options
author | Shane Kearns <shane.kearns@sosco.com> | 2009-11-06 12:44:04 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-11-13 10:57:52 (GMT) |
commit | 99c42254480fb147b0aaa01458300bae4472e3d8 (patch) | |
tree | f794dd7f6fa7d18e11ff6dfde08777598248afb4 /src/corelib/arch/symbian | |
parent | a53bbbf81ce2dbce143ebc08fd91418e51a44588 (diff) | |
download | Qt-99c42254480fb147b0aaa01458300bae4472e3d8.zip Qt-99c42254480fb147b0aaa01458300bae4472e3d8.tar.gz Qt-99c42254480fb147b0aaa01458300bae4472e3d8.tar.bz2 |
Fix functions that return whether atomics are natives following review comments
Reviewed-By: Brad
Diffstat (limited to 'src/corelib/arch/symbian')
-rw-r--r-- | src/corelib/arch/symbian/qatomic_symbian.cpp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/corelib/arch/symbian/qatomic_symbian.cpp b/src/corelib/arch/symbian/qatomic_symbian.cpp index 2ab5ae9..91b49c7 100644 --- a/src/corelib/arch/symbian/qatomic_symbian.cpp +++ b/src/corelib/arch/symbian/qatomic_symbian.cpp @@ -77,6 +77,69 @@ struct QSymbianPrintExitInfo TInt initThreadHandleCount; } symbian_printExitInfo; +Q_CORE_EXPORT bool QBasicAtomicInt::isReferenceCountingNative() +{ +#ifdef QT_HAVE_ARMV6 + return true; +#else + return false; +#endif +} + +Q_CORE_EXPORT bool QBasicAtomicInt::isTestAndSetNative() +{ +#ifdef QT_HAVE_ARMV6 + return true; +#else + return false; +#endif +} + +Q_CORE_EXPORT bool QBasicAtomicInt::isFetchAndStoreNative() +{ +#ifdef QT_HAVE_ARMV6 + return true; +#else + return false; +#endif +} + +Q_CORE_EXPORT bool QBasicAtomicInt::isFetchAndAddNative() +{ +#ifdef QT_HAVE_ARMV6 + return true; +#else + return false; +#endif +} + +Q_CORE_EXPORT bool QBasicAtomicPointer_isTestAndSetNative() +{ +#ifdef QT_HAVE_ARMV6 + return true; +#else + return false; +#endif +} + +Q_CORE_EXPORT bool QBasicAtomicPointer_isFetchAndStoreNative() +{ +#ifdef QT_HAVE_ARMV6 + return true; +#else + return false; +#endif +} + +Q_CORE_EXPORT bool QBasicAtomicPointer_isFetchAndAddNative() +{ +#ifdef QT_HAVE_ARMV6 + return true; +#else + return false; +#endif +} + //For ARMv6, the generic atomics are machine coded #ifndef QT_HAVE_ARMV6 |