Don't export QAtomicInt, it's all inline
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 6 Aug 2012 18:38:08 +0000 (20:38 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Aug 2012 14:40:07 +0000 (16:40 +0200)
Moreover, exporting it causes the horrible side-effect on Windows
(with MSVC) that the compiler will not inline the functions, but
instead will place indirect calls to the functions in QtCore DLL,
even in release mode. For such a critical piece of code, inlining
is necessary.

Change-Id: Ib31c12f6bf8dc8ece1b51824716a480559753c24
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
src/corelib/thread/qatomic.h

index 5cd9a6a..962f566 100644 (file)
@@ -57,7 +57,7 @@ QT_BEGIN_NAMESPACE
 #endif
 
 // High-level atomic integer operations
-class Q_CORE_EXPORT QAtomicInt : public QBasicAtomicInt
+class QAtomicInt : public QBasicAtomicInt
 {
 public:
     // Non-atomic API