diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-02-10 14:27:34 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-13 22:15:44 +0100 |
commit | de35b37c68991d87095ad087a635cd9d4e5fe185 (patch) | |
tree | 0958c6bb63b073e195a6b1ae5773c7ecad2fe76d /src/corelib/thread | |
parent | 605339a5dd3b9c5740927ad9af85bb6d0f94c5b7 (diff) |
Add src/corelib/arch/qatomic_unix.h and qatomic_unix.cpp
This provides a fallback implementation on UNIX when the Q_PROCESSOR_*
and Q_CC_*/Q_COMPILER_* checks fail to find an implementation.
Note that we always compile qatomic_unix.cpp, but code is only included
when QATOMIC_UNIX_H is defined (meaning the checks above did not find an
implementation).
Change-Id: I8ce047847206003b4fa96eb3fb76b1c2ffbc2dfc
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r-- | src/corelib/thread/qbasicatomic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/thread/qbasicatomic.h b/src/corelib/thread/qbasicatomic.h index ba9e30b0dc..363a4da338 100644 --- a/src/corelib/thread/qbasicatomic.h +++ b/src/corelib/thread/qbasicatomic.h @@ -91,6 +91,10 @@ #elif defined(Q_CC_GNU) # include <QtCore/qatomic_gcc.h> +// Fallback operating system dependent implementation +#elif defined(Q_OS_UNIX) +# include <QtCore/qatomic_unix.h> + // No fallback #else # error "Qt has not been ported to this platform" |