[Qt-interest] please help me with this problem
Thiago Macieira
thiago at kde.org
Tue Dec 8 08:22:52 CET 2009
Em Terça-feira 8. Dezembro 2009, às 02.58.29, Glenn Hughes escreveu:
> Sleep should never block... from the man page:
>
> "The sleep() function suspends execution of the calling thread until
> either seconds seconds have elapsed or a signal is delivered to the
> thread and its action is to invoke a signal-catching function or to
> ter- minate the thread or process."
>
> In other words, other threads can run while one thread is sleeping.
> It might however have something to do with the way that cross-thread
> signals are delivered.
> Its an interesting question...
You've pasted a section of manual that confirms that it does block. "Suspending
the execution of the calling thread" means that nothing in that thread is run,
including Qt signal delivery to slots.
The part in the paste about signals is Unix signals, not Qt ones.
--
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/20091208/11fa9e37/attachment.bin
More information about the Qt-interest-old
mailing list