This class, too, belongs with QFuture.
Change-Id: I41a532ca66c156f1631e4b22ffc1a5879c854488
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
PRECOMPILED_HEADER = ../corelib/global/qt_pch.h
SOURCES += \
- qfuturesynchronizer.cpp \
qtconcurrentfilter.cpp \
qtconcurrentmap.cpp \
qtconcurrentthreadengine.cpp \
HEADERS += \
qtconcurrent_global.h \
- qfuturesynchronizer.h \
qtconcurrentcompilertest.h \
qtconcurrentexception.h \
qtconcurrentfilter.h \
#ifndef QFUTURESYNCHRONIZER_H
#define QFUTURESYNCHRONIZER_H
-#include <QtConcurrent/qtconcurrent_global.h>
-
#include <QtCore/qfuture.h>
-#ifndef QT_NO_CONCURRENT
+#ifndef QT_NO_QFUTURE
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
QT_END_HEADER
-#endif // QT_NO_CONCURRENT
+#endif // QT_NO_QFUTURE
#endif // QFUTURESYNCHRONIZER_H
an easy way to ensure that all futures have finished before returning from
a function:
- \snippet code/src_concurrent_qfuturesynchronizer.cpp 0
+ \snippet code/src_corelib_thread_qfuturesynchronizer.cpp 0
The behavior of waitForFinished() can be changed using the
setCancelOnWait() function. Calling setCancelOnWait(true) will cause
thread/qresultstore.h \
thread/qfuture.h \
thread/qfutureinterface.h \
+ thread/qfuturesynchronizer.h \
thread/qfuturewatcher.h \
thread/qbasicatomic.h \
thread/qgenericatomic.h \
TEMPLATE=subdirs
SUBDIRS=\
- qfuturesynchronizer \
qtconcurrentfilter \
qtconcurrentiteratekernel \
qtconcurrentmap \
#include <QtTest>
-#include <QtConcurrent/qfuturesynchronizer.h>
+#include <QtCore/qfuturesynchronizer.h>
#include <QtCore/qfuture.h>
class tst_QFutureSynchronizer : public QObject
qatomicpointer \
qresultstore \
qfuture \
+ qfuturesynchronizer \
qfuturewatcher \
qmutex \
qmutexlocker \