[Development] Using platform-native APIs for terminating QThreads

Thiago Macieira thiago.macieira at intel.com
Tue Sep 6 01:44:32 CEST 2016


Em segunda-feira, 5 de setembro de 2016, às 16:08:41 PDT, Viktor Engelmann 
escreveu:
> So what if the user adds an asm statement that changes a register and
> doesn't declare that register to be changed? That would also cause his
> "Qt" application to misbehave... or what if he links the object files to
> a custom loader that doesn't call the constructors for global objects?

If you insert an asm statement that changes a register and you don't inform 
GCC that you changed it, then your application is buggy and it deserves to 
crash. In fact, you should HOPE it crashes cleanly, before it corrupts any 
user data.

Still, what does that have to do with the problem at hand?

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




More information about the Development mailing list