![]() |
Qt 6.x
The Qt SDK
|
#include <qfutureinterface.h>
Static Public Member Functions | |
static QFutureInterface | canceledResult () |
![]() | |
template<typename T > | |
static QFutureInterfaceBase | get (const QFuture< T > &future) |
Additional Inherited Members | |
![]() | |
enum | State { NoState = 0x00 , Running = 0x01 , Started = 0x02 , Finished = 0x04 , Canceled = 0x08 , Suspending = 0x10 , Suspended = 0x20 , Throttled = 0x40 , Pending = 0x80 } |
![]() | |
enum class | CancelMode { CancelOnly , CancelAndFinish } |
![]() | |
bool | refT () const noexcept |
bool | derefT () const noexcept |
void | reset () |
void | rethrowPossibleException () |
void | setContinuation (std::function< void(const QFutureInterfaceBase &)> func) |
void | setContinuation (std::function< void(const QFutureInterfaceBase &)> func, QFutureInterfaceBasePrivate *continuationFutureData) |
void | cleanContinuation () |
void | runContinuation () const |
void | setLaunchAsync (bool value) |
bool | launchAsync () const |
bool | isRunningOrPending () const |
void | cancel (CancelMode mode) |
Definition at line 208 of file qfutureinterface.h.
|
inline |
Definition at line 211 of file qfutureinterface.h.
References QFutureInterfaceBase::refT().
|
inline |
Definition at line 216 of file qfutureinterface.h.
References QFutureInterfaceBase::refT().
|
inline |
Definition at line 221 of file qfutureinterface.h.
References QFutureInterfaceBase::refT().
|
inlinenoexcept |
Definition at line 222 of file qfutureinterface.h.
References QFutureInterfaceBase::refT().
|
default |
|
inline |
Definition at line 232 of file qfutureinterface.h.
References QFutureInterfaceBase::derefT(), QFutureInterfaceBase::hasException(), and QFutureInterfaceBase::resultStoreBase().
|
inlinestatic |
Definition at line 238 of file qfutureinterface.h.
References QFutureInterfaceBase::Canceled, QFutureInterfaceBase::Finished, and QFutureInterfaceBase::Started.
|
inline |
Definition at line 320 of file qfuture.h.
Referenced by QtFuture::connect(), QtPrivate::Continuation< Function, ResultType, ParentResultType >::create(), QtPrivate::Continuation< Function, ResultType, ParentResultType >::create(), QtPrivate::FailureHandler< Function, ResultType >::create(), QtPrivate::CanceledHandler< Function, ResultType >::create(), QtFuture::makeExceptionalFuture(), QtPrivate::makeReadyRangeFutureImpl(), QtFuture::makeReadyValueFuture(), QtFuture::makeReadyVoidFuture(), QFuture< T >::onCanceled(), QFuture< T >::onCanceled(), QFuture< T >::onFailed(), QFuture< T >::onFailed(), QFuture< T >::then(), QFuture< T >::then(), QFuture< T >::then(), and QtPrivate::UnwrapHandler::unwrapImpl().
|
inline |
Definition at line 223 of file qfutureinterface.h.
References copy(), other(), and QFutureInterfaceBase::swap().
|
inline |
Definition at line 311 of file qfutureinterface.h.
References args, QtPrivate::ResultStoreBase::count(), QtPrivate::ResultStoreBase::emplaceResult(), QtPrivate::ResultStoreBase::filterMode(), mutex, and Q_ASSERT.
|
inline |
Definition at line 329 of file qfutureinterface.h.
Referenced by QtConcurrent::StoredFunctionCall< Function, Args >::runFunctor().
|
inline |
Definition at line 276 of file qfutureinterface.h.
|
inline |
Definition at line 268 of file qfutureinterface.h.
References e, QFutureInterfaceBase::hasException(), QFutureInterfaceBase::reportException(), and QFutureInterfaceBase::resultStoreBase().
Referenced by QtFuture::makeExceptionalFuture(), and QtPrivate::UnwrapHandler::unwrapImpl().
|
inline |
Definition at line 251 of file qfutureinterface.h.
References QFutureInterfaceBase::reportFinished(), and QFutureInterfaceBase::runContinuation().
|
inline |
Definition at line 369 of file qfutureinterface.h.
Referenced by QtFuture::connect(), QtFuture::makeExceptionalFuture(), QtPrivate::makeReadyRangeFutureImpl(), QtFuture::makeReadyValueFuture(), QtFuture::makeReadyVoidFuture(), and QtPrivate::UnwrapHandler::unwrapImpl().
|
inline |
Definition at line 341 of file qfutureinterface.h.
|
inline |
Definition at line 288 of file qfutureinterface.h.
References QtPrivate::ResultStoreBase::addResult(), QtPrivate::ResultStoreBase::count(), QtPrivate::ResultStoreBase::filterMode(), mutex, and Q_ASSERT.
Referenced by QtFuture::connect(), QtFuture::makeReadyValueFuture(), and QtConcurrent::StoredFunctionCall< Function, Args >::runFunctor().
|
inline |
Definition at line 335 of file qfutureinterface.h.
|
inline |
Definition at line 347 of file qfutureinterface.h.
References mutex, Q_ASSERT, and QList< T >::size().
Referenced by QtPrivate::makeReadyRangeFutureImpl().
|
inline |
Definition at line 388 of file qfutureinterface.h.
|
inline |
Definition at line 379 of file qfutureinterface.h.
|
inline |
Definition at line 397 of file qfutureinterface.h.
References QSet< T >::begin(), it, mutex, and QFutureInterfaceBase::waitForResult().
T QFutureInterface< T >::takeResult |
Definition at line 419 of file qfutureinterface.h.
References mutex, position(), Q_ASSERT, and ret.