On terça-feira, 19 de março de 2013 09.57.57, K. Frank wrote:
> But seriously, does anyone know what the motivation for making sleep
> protected might have been?

It was meant to be used only in the run() method. And as Frank H. replied, it
prevents people from trying to put another thread to sleep by calling it.

Making it difficult for you is actually intentional. It forces you to think
better about your code. Don't sleep. And especially, never sleep in a method
using the global thread pool, like those started by QtConcurrent::run.
--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to