blob: a50a99e86b50c25f6c57a6cb80b1cc73fbdd4eef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//! [0]
void someFunction()
{
QFutureSynchronizer<void> synchronizer;
...
synchronizer.addFuture(QtConcurrent::run(anotherFunction));
synchronizer.addFuture(QtConcurrent::map(list, mapFunction));
return; // QFutureSynchronizer waits for all futures to finish
}
//! [0]
|