QtCore/qtconcurrentthreadengine.h Source File
Go to the documentation of this file.
42 #ifndef QTCONCURRENT_THREADENGINE_H
43 #define QTCONCURRENT_THREADENGINE_H
47 #ifndef QT_NO_CONCURRENT
103 void startSingleThreaded();
104 void startBlocking();
107 void waitForResume();
108 bool isProgressReportingEnabled();
109 void setProgressValue(
int progress);
110 void setProgressRange(
int minimum,
int maximum);
111 void acquireBarrierSemaphore();
117 virtual bool shouldStartThread() {
return futureInterface ? !futureInterface->isPaused() :
true; }
120 bool startThreadInternal();
123 bool threadThrottleExit();
125 virtual void asynchronousFinish() = 0;
126 #ifndef QT_NO_EXCEPTIONS
137 template <
typename T>
210 template <
typename T>
238 template <
typename T>
270 template <
typename ThreadEngine>
283 #endif // QT_NO_CONCURRENT
ThreadEngineStarter(TypedThreadEngine *eng)
ThreadEngineStarterBase(ThreadEngine< T > *_threadEngine)
QFutureInterface< T > * futureInterfaceTyped()
QFutureInterfaceBase * futureInterface
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
void start(QRunnable *runnable, int priority=0)
void reportResults(const QVector< T > &_result, int index=-1, int count=-1)
#define QT_BEGIN_NAMESPACE
QFuture< T > startAsynchronously()
QFuture< T > startAsynchronously()
void asynchronousFinish()
void acquireBarrierSemaphore()
GLuint GLuint GLsizei count
void startSingleThreaded()
QtConcurrent::internal::ExceptionStore exceptionStore
virtual bool shouldStartThread()
ThreadEngineStarter< typename ThreadEngine::ResultType > startThreadEngine(ThreadEngine *threadEngine)
ThreadEngine< T > * threadEngine
virtual bool shouldThrottleThread()
virtual ThreadFunctionResult threadFunction()
ThreadEngineStarterBase(const ThreadEngineStarterBase &other)
QFuture< T > run(T(*functionPointer)())
ThreadEngineBarrier barrier
T * startSingleThreaded()
void reportResult(const T *_result, int index=-1)