On quinta-feira, 15 de novembro de 2012 21.07.09, Tony Van Eerd wrote: > QThread: > - needs new docs (coming in 5.0) > - often misused ("you're doing it wrong") > - results in too many dedicated threads (typically) > - or threads created/destroyed too often > > QtConcurrent::run() > - I thought this was a better alternative for "one shot tasks" > - now it sounds like QtConcurrent is not the way to go? > > What should I be recommending to developers?
The solution we haven't written yet. QThread is just fine if you need a long-running thread or one that will do blocking operations. If you need to start "one shot tasks", we're missing a good API to replace QtConcurrent for now. I'd like to see someone give TBB a Qt-ish API wrapper. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development