Add src/corelib/arch/qatomic_unix.h and qatomic_unix.cpp
authorBradley T. Hughes <bradley.hughes@nokia.com>
Fri, 10 Feb 2012 13:27:34 +0000 (14:27 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 13 Feb 2012 21:15:44 +0000 (22:15 +0100)
commitde35b37c68991d87095ad087a635cd9d4e5fe185
tree0958c6bb63b073e195a6b1ae5773c7ecad2fe76d
parent605339a5dd3b9c5740927ad9af85bb6d0f94c5b7
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>
src/corelib/arch/arch.pri
src/corelib/arch/qatomic_unix.cpp [new file with mode: 0644]
src/corelib/arch/qatomic_unix.h [new file with mode: 0644]
src/corelib/thread/qbasicatomic.h