[Interest] moveToThread used in constructor to move "this"

Thiago Macieira thiago.macieira at intel.com
Sat Feb 27 20:22:33 CET 2016


On sábado, 27 de fevereiro de 2016 11:58:09 PST Lorenz Haas wrote:
> So it's all about the "unless..." part. Technically at the moment one
> is calling delete it's not guaranteed that there are no events. Inside
> the destructor, however, it is. So, assumed the documentation is
> right, would this special "delete foo;" use case in main() be safe?

If the object has timers or it tries to destroy QSocketNotifiers, it will also 
fail.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list