[Development] Evolving Qt's multithreading API
Thiago Macieira
thiago.macieira at intel.com
Tue Mar 5 16:59:56 CET 2013
On terça-feira, 5 de março de 2013 10.11.21, Olivier Goffart wrote:
> > Yes.
>
> No.
>
> If you do that, there is even a qWarning telling you there will be a race:
> http://code.woboq.org/qt5/qtbase/src/corelib/thread/qfuturewatcher.cpp.html#
> _ZN18QFutureWatcherBase13connectNotifyERK11QMetaMethod
>
> You should setup the connection before the future.
Fair enough. You can create the QFutureWatcher before the future. The code is
even more clear that way.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130305/1800299e/attachment.sig>
More information about the Development
mailing list