diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-21 10:54:55 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-22 10:47:13 +0100 |
commit | e07aec7eaa40361b685f35dd75b9f668f28364b7 (patch) | |
tree | ebf239bb67b874ce16be3a23bef1cc52424b0eb3 /src/corelib/thread/qfutureinterface.cpp | |
parent | df121fd7f74ecfb3de20867edea1c1f3ebf035c2 (diff) |
QFuture: cleanup headers
Do not include vector; we currently do not use std::vector, and the plan
is to use QList when that one supports move-only types.
Use QMutexLocker instead of std::mutex_locker, considering that the
former is already included with <QMutex>.
Use forward declarations where applicable.
Add header which were currently only indirectly included (to make
QtCreator's code model happy).
Change-Id: I37d5cd3982047a6d8a3132fd66571878298039b3
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
-rw-r--r-- | src/corelib/thread/qfutureinterface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/thread/qfutureinterface.cpp b/src/corelib/thread/qfutureinterface.cpp index 7a8ba08103..4e9d557209 100644 --- a/src/corelib/thread/qfutureinterface.cpp +++ b/src/corelib/thread/qfutureinterface.cpp @@ -600,6 +600,11 @@ void QFutureInterfaceBase::reset() d->isValid = false; } +void QFutureInterfaceBase::rethrowPossibleException() +{ + exceptionStore().throwPossibleException(); +} + QFutureInterfaceBasePrivate::QFutureInterfaceBasePrivate(QFutureInterfaceBase::State initialState) : refCount(1), m_progressValue(0), m_progressMinimum(0), m_progressMaximum(0), state(initialState), |