Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_concurrent_qtconcurrentrun.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Classes

struct  TestClass
 [7] More...
 
struct  Functor
 [13] More...
 

Functions

void aFunction ()
 [0]
 
void aFunctionWithArguments (int arg1, double arg2, const QString &string)
 [explicit-pool-0]
 
QString functionReturningAString ()
 [1]
 
QString someFunction (const QByteArray &input)
 [2]
 
future waitForFinished ()
 
static void addOne (int &n)
 [6]
 
QtConcurrent::runaddOne (n)).waitForFinished(
 
void aFunction (QPromise< void > &promise)
 [8]
 
void aFunction (QPromise< void > &promise, int arg1, const QString &arg2)
 [9]
 
void helloWorldFunction (QPromise< QString > &promise)
 [10]
 
void aFunction (QPromise< int > &promise)
 [11]
 
future suspend ()
 
future resume ()
 
future cancel ()
 [6]
 
QObject::connect &[] watcher (int progress){ ... ;qDebug()<< "current progress:"<< progress;}
 
watcher setFuture (QtConcurrent::run(aFunction))
 
 run< double > (f)
 
void foo (int arg)
 [14]
 
void foo (int arg1, int arg2)
 

Variables

QFuture< voidfuture = QtConcurrent::run(aFunction)
 [5]
 
QThreadPool pool
 [8]
 
int integer = ...
 
double floatingPoint = ...
 
QString string = ...
 
QString result = future.result()
 
QByteArray bytearray = ...
 [3]
 
QImage image = ...
 [4]
 
int n = 42
 
TestClass o
 
QList< QStringresults = future.results()
 
QFutureWatcher< int > watcher
 
Functor f
 

Function Documentation

◆ addOne() [1/2]

static void addOne ( int & n)
static

[6]

[7]

Definition at line 71 of file src_concurrent_qtconcurrentrun.cpp.

◆ addOne() [2/2]

QtConcurrent::run & addOne ( n )

◆ aFunction() [1/4]

void aFunction ( )
extern

[0]

[explicit-pool-0]

◆ aFunction() [2/4]

void aFunction ( QPromise< int > & promise)

[11]

[12]

[13]

Definition at line 128 of file src_concurrent_qtconcurrentrun.cpp.

◆ aFunction() [3/4]

void aFunction ( QPromise< void > & promise)
extern

[8]

[9]

◆ aFunction() [4/4]

void aFunction ( QPromise< void > & promise,
int arg1,
const QString & arg2 )
extern

[9]

[10]

◆ aFunctionWithArguments()

void aFunctionWithArguments ( int arg1,
double arg2,
const QString & string )
extern

[explicit-pool-0]

[1]

◆ cancel()

releaser cancel ( )

[6]

[7]

◆ foo() [1/2]

void foo ( int arg)

[14]

[15]

◆ foo() [2/2]

void foo ( int arg1,
int arg2 )

◆ functionReturningAString()

QString functionReturningAString ( )
extern

[1]

[2]

◆ helloWorldFunction()

void helloWorldFunction ( QPromise< QString > & promise)

[10]

[11]

Definition at line 116 of file src_concurrent_qtconcurrentrun.cpp.

◆ resume()

future resume ( )

◆ run< double >()

run< double > ( f )

◆ setFuture()

◆ someFunction()

QString someFunction ( const QByteArray & input)
extern

[2]

[3]

◆ suspend()

future suspend ( )

◆ waitForFinished()

static void waitForFinished ( )

Definition at line 479 of file main.cpp.

References g_testInfo, and isRunning().

+ Here is the call graph for this function:

◆ watcher()

QObject::connect &[] watcher ( int progress)

Variable Documentation

◆ bytearray

◆ f

Definition at line 181 of file src_concurrent_qtconcurrentrun.cpp.

◆ floatingPoint

double floatingPoint = ...

Definition at line 21 of file src_concurrent_qtconcurrentrun.cpp.

◆ future

[5]

[15]

[6]

[16]

[17]

[18]

Definition at line 6 of file src_concurrent_qtconcurrentrun.cpp.

◆ image

QImage image = ...

[4]

[5]

Definition at line 56 of file src_concurrent_qtconcurrentrun.cpp.

◆ integer

int integer = ...

Definition at line 20 of file src_concurrent_qtconcurrentrun.cpp.

◆ n

int n = 42

Definition at line 73 of file src_concurrent_qtconcurrentrun.cpp.

◆ o

Definition at line 86 of file src_concurrent_qtconcurrentrun.cpp.

◆ pool

[8]

[9]

Definition at line 12 of file src_concurrent_qtconcurrentrun.cpp.

Referenced by QCocoaMenuItem::setMenu().

◆ result

QList<QByteArray> result = future.result()

Definition at line 32 of file src_concurrent_qtconcurrentrun.cpp.

◆ results

QList<QString> results = future.results()

Definition at line 124 of file src_concurrent_qtconcurrentrun.cpp.

◆ string

QString string = ...

Definition at line 22 of file src_concurrent_qtconcurrentrun.cpp.

◆ watcher

connect & watcher

Definition at line 167 of file src_concurrent_qtconcurrentrun.cpp.