qtconcurrentexception.cpp
HEADERS += \
+ qtconcurrent_global.h \
qfuture.h \
qfutureinterface.h \
qfuturesynchronizer.h \
#ifndef QFUTURE_H
#define QFUTURE_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_QFUTURE
#ifndef QFUTUREINTERFACE_H
#define QFUTUREINTERFACE_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
+
#include <QtCore/qrunnable.h>
#ifndef QT_NO_QFUTURE
// We mean it.
//
+#include <QtConcurrent/qtconcurrent_global.h>
+
#include <QtCore/qelapsedtimer.h>
#include <QtCore/qcoreevent.h>
#include <QtCore/qlist.h>
#ifndef QFUTRUESYNCHRONIZER_H
#define QFUTRUESYNCHRONIZER_H
+#include <QtConcurrent/qtconcurrent_global.h>
+
#include <QtConcurrent/qfuture.h>
#ifndef QT_NO_CONCURRENT
#ifndef QFUTUREWATCHER_H
#define QFUTUREWATCHER_H
+#include <QtConcurrent/qtconcurrent_global.h>
+
#include <QtConcurrent/qfuture.h>
#ifndef QT_NO_QFUTURE
// We mean it.
//
+#include <QtConcurrent/qtconcurrent_global.h>
+
#include "qfutureinterface_p.h"
#include <qlist.h>
--- /dev/null
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
+**
+** This file is part of the QtCore module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** GNU Lesser General Public License Usage
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this
+** file. Please review the following information to ensure the GNU Lesser
+** General Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 3.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of this
+** file. Please review the following information to ensure the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QTCONCURRENT_GLOBAL_H
+#define QTCONCURRENT_GLOBAL_H
+
+#include <QtCore/qglobal.h>
+
+#ifdef QT_NO_CONCURRENT
+# define QT_NO_QFUTURE
+#endif
+
+#if defined(Q_OS_WIN) && !defined(QT_NODLL)
+# if defined(QT_MAKEDLL)
+# if defined(QT_BUILD_CONCURRENT_LIB)
+# define Q_CONCURRENT_EXPORT Q_DECL_EXPORT
+# else
+# define Q_CONCURRENT_EXPORT Q_DECL_IMPORT
+# endif
+# elif defined(QT_DLL)
+# define Q_CONCURRENT_EXPORT Q_DECL_IMPORT
+# endif
+#endif
+
+#if !defined(Q_CONCURRENT_EXPORT)
+# if defined(QT_SHARED)
+# define Q_CONCURRENT_EXPORT Q_DECL_EXPORT
+# else
+# define Q_CONCURRENT_EXPORT
+# endif
+#endif
+
+// gcc 3 version has problems with some of the
+// map/filter overloads.
+#if defined(Q_CC_GNU) && (__GNUC__ < 4)
+# define QT_NO_CONCURRENT_MAP
+# define QT_NO_CONCURRENT_FILTER
+#endif
+
+#if defined (Q_CC_MSVC) && (_MSC_VER < 1300)
+# define QT_TYPENAME
+#else
+# define QT_TYPENAME typename
+#endif
+
+#endif // include guard
#ifndef QTCONCURRENT_COMPILERTEST_H
#define QTCONCURRENT_COMPILERTEST_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
-
-#if defined (Q_CC_MSVC) && (_MSC_VER < 1300)
-# define QT_TYPENAME
-#else
-# define QT_TYPENAME typename
-#endif
-
namespace QtPrivate {
template<class T>
#ifndef QTCONCURRENT_EXCEPTION_H
#define QTCONCURRENT_EXCEPTION_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_QFUTURE
#ifndef QTCONCURRENT_FILTER_H
#define QTCONCURRENT_FILTER_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_FILTERKERNEL_H
#define QTCONCURRENT_FILTERKERNEL_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_FUNCTIONWRAPPERS_H
#define QTCONCURRENT_FUNCTIONWRAPPERS_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_ITERATEKERNEL_H
#define QTCONCURRENT_ITERATEKERNEL_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_MAP_H
#define QTCONCURRENT_MAP_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_MAPKERNEL_H
#define QTCONCURRENT_MAPKERNEL_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_MEDIAN_H
#define QTCONCURRENT_MEDIAN_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_REDUCEKERNEL_H
#define QTCONCURRENT_REDUCEKERNEL_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_RESULTSTORE_H
#define QTCONCURRENT_RESULTSTORE_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_QFUTURE
#ifndef QTCONCURRENT_RUN_H
#define QTCONCURRENT_RUN_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_RUNBASE_H
#define QTCONCURRENT_RUNBASE_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#ifndef QTCONCURRENT_STOREDFUNCTIONCALL_H
#define QTCONCURRENT_STOREDFUNCTIONCALL_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
#include <QtConcurrent/qtconcurrentrunbase.h>
#ifndef QTCONCURRENT_THREADENGINE_H
#define QTCONCURRENT_THREADENGINE_H
-#include <QtCore/qglobal.h>
+#include <QtConcurrent/qtconcurrent_global.h>
#ifndef QT_NO_CONCURRENT
# define Q_DBUS_EXPORT Q_DECL_IMPORT
# endif
# define Q_TEMPLATEDLL
-# if defined(QT_BUILD_CONCURRENT_LIB)
-# define Q_CONCURRENT_EXPORT Q_DECL_EXPORT
-# else
-# define Q_CONCURRENT_EXPORT Q_DECL_IMPORT
-# endif
# elif defined(QT_DLL) /* use a Qt DLL library */
# define Q_CORE_EXPORT Q_DECL_IMPORT
# define Q_GUI_EXPORT Q_DECL_IMPORT
# define Q_SCRIPTTOOLS_EXPORT Q_DECL_IMPORT
# define Q_COMPAT_EXPORT Q_DECL_IMPORT
# define Q_DBUS_EXPORT Q_DECL_IMPORT
-# define Q_CONCURRENT_EXPORT Q_DECL_IMPORT
# define Q_TEMPLATEDLL
# endif
# define Q_NO_DECLARED_NOT_DEFINED
# define Q_SCRIPTTOOLS_EXPORT Q_DECL_EXPORT
# define Q_COMPAT_EXPORT Q_DECL_EXPORT
# define Q_DBUS_EXPORT Q_DECL_EXPORT
-# define Q_CONCURRENT_EXPORT Q_DECL_EXPORT
# else
# define Q_CORE_EXPORT
# define Q_GUI_EXPORT
# define Q_SCRIPTTOOLS_EXPORT
# define Q_COMPAT_EXPORT
# define Q_DBUS_EXPORT
-# define Q_CONCURRENT_EXPORT
# endif
#endif
#define QT_MODULE(x)
-#ifdef QT_NO_CONCURRENT
-# define QT_NO_QFUTURE
-#endif
-
-// gcc 3 version has problems with some of the
-// map/filter overloads.
-#if defined(Q_CC_GNU) && (__GNUC__ < 4)
-# define QT_NO_CONCURRENT_MAP
-# define QT_NO_CONCURRENT_FILTER
-#endif
-
#ifdef Q_OS_QNX
// QNX doesn't have SYSV style shared memory. Multiprocess QWS apps,
// shared fonts and QSystemSemaphore + QSharedMemory are not available