[Interest] QtThread

Thiago Macieira thiago.macieira at intel.com
Mon Jan 20 17:32:28 CET 2014


On segunda-feira, 20 de janeiro de 2014 12:41:33, Bo Thorsen wrote:
> I have just created a suggestion in the bug tracker to make it illegal 
> to do moveToThread(this):
> 
> https://bugreports.qt-project.org/browse/QTBUG-36278
> 
> It can't be said often enough: Don't do this! But if it was illegal 
> behaviour, we wouldn't have to say it.

Because it's not illegal to do it. It's just a bad idea in most cases.

I'd rather not add a check for things you shouldn't do but that might still 
work nonetheless. That's wasted CPU cycles for people who did the right thing.

-- 
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/interest/attachments/20140120/67af8b2e/attachment.sig>


More information about the Interest mailing list