Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src_corelib_concurrent_qfuturesynchronizer.cpp

//! [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]

Generated by  Doxygen 1.6.0   Back to index