![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtConcurrent More...
#include <qtconcurrentthreadengine.h>
Public Types | |
| typedef T | ResultType |
| Public Types inherited from QRunnable | |
| template<typename Callable> | |
| using | if_callable = std::enable_if_t<std::is_invocable_r_v<void, Callable>, bool> |
Public Member Functions | |
| ThreadEngine (QThreadPool *pool) | |
| virtual T * | result () |
| QFutureInterface< T > * | futureInterfaceTyped () |
| T * | startSingleThreaded () |
| QFuture< T > | startAsynchronously () |
| void | asynchronousFinish () override |
| void | reportResult (const T *_result, int index=-1) |
| void | reportResults (const QList< T > &_result, int index=-1, int count=-1) |
| Public Member Functions inherited from QtConcurrent::ThreadEngineBase | |
| ThreadEngineBase (QThreadPool *pool) | |
| virtual | ~ThreadEngineBase () |
| void | startSingleThreaded () |
| void | startThread () |
| bool | isCanceled () |
| void | waitForResume () |
| bool | isProgressReportingEnabled () |
| void | setProgressValue (int progress) |
| void | setProgressRange (int minimum, int maximum) |
| void | acquireBarrierSemaphore () |
| void | reportIfSuspensionDone () const |
| Public Member Functions inherited from QRunnable | |
| constexpr | QRunnable () noexcept=default |
| Constructs a QRunnable. | |
| virtual | ~QRunnable () |
| QRunnable virtual destructor. | |
| bool | autoDelete () const |
Returns true is auto-deletion is enabled; false otherwise. | |
| void | setAutoDelete (bool autoDelete) |
| Enables auto-deletion if autoDelete is true; otherwise auto-deletion is disabled. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from QRunnable | |
| template<typename Callable, if_callable< Callable > = true> | |
| static QRunnable * | create (Callable &&functionToRun) |
| static QRunnable * | create (std::nullptr_t)=delete |
| Protected Member Functions inherited from QtConcurrent::ThreadEngineBase | |
| virtual void | start () |
| virtual void | finish () |
| virtual ThreadFunctionResult | threadFunction () |
| virtual bool | shouldStartThread () |
| virtual bool | shouldThrottleThread () |
| Protected Attributes inherited from QtConcurrent::ThreadEngineBase | |
| QFutureInterfaceBase * | futureInterface |
| QThreadPool * | threadPool |
| ThreadEngineBarrier | barrier |
| QtPrivate::ExceptionStore | exceptionStore |
| QBasicMutex | mutex |
\inmodule QtConcurrent
Definition at line 98 of file qtconcurrentthreadengine.h.
| typedef T QtConcurrent::ThreadEngine< T >::ResultType |
Definition at line 101 of file qtconcurrentthreadengine.h.
|
inline |
Definition at line 103 of file qtconcurrentthreadengine.h.
|
inlineoverridevirtual |
Implements QtConcurrent::ThreadEngineBase.
Definition at line 137 of file qtconcurrentthreadengine.h.
|
inline |
Definition at line 107 of file qtconcurrentthreadengine.h.
|
inline |
Definition at line 146 of file qtconcurrentthreadengine.h.
|
inline |
Definition at line 152 of file qtconcurrentthreadengine.h.
|
inlinevirtual |
Reimplemented in QtConcurrent::FilteredReducedKernel< ReducedResultType, Iterator, KeepFunctor, ReduceFunctor, Reducer >, and QtConcurrent::MappedReducedKernel< ReducedResultType, Iterator, MapFunctor, ReduceFunctor, Reducer >.
Definition at line 105 of file qtconcurrentthreadengine.h.
Referenced by startSingleThreaded().
|
inline |
Definition at line 121 of file qtconcurrentthreadengine.h.
|
inline |
Definition at line 113 of file qtconcurrentthreadengine.h.
References result().