[Qt-interest] Example of "moveToThread (this)" idiom -- legal?
Thiago Macieira
thiago at kde.org
Sun Jan 2 20:22:51 CET 2011
On Sunday, 2 de January de 2011 10:18:01 K. Frank wrote:
> Hi Mihail -
>
> On Sun, Jan 2, 2011 at 6:01 AM, Mihail Naydenov <mlists at ymail.com> wrote:
> > Without going through the example, I just wanted to remind you
> >
> > Qt itself uses moveToThred(this)
> >
> > (see QFilesystemWatcher implementation)
>
> Good point. It looks like it uses the full "moveToThread (this)"
> idiom: It derives from QThread, calls moveToThread (this),
> and has signals ans slots.
>
> > So, I am sure by definition moveToThred(this) is not illegal.
>
> Yes, QFileSystemWatcher looks like a strong vote that
> moveToThread (this) is technically legal.
Remember the one big assumption here: that QFileSystemWatcher is properly
written.
It's not a given.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110102/22f368fe/attachment.bin
More information about the Qt-interest-old
mailing list