[Qt-interest] Multithreading - yield function
Bradley T. Hughes
bradley.hughes at nokia.com
Wed Sep 2 11:02:41 CEST 2009
Patric wrote:
[snip]
> I need to yield it because my logic requires it. I'm using queued
> connections here and it's very important to know that the destination
> slot is emitted before the thread continues.
> But if it's just a hint for the OS and it can decide to ignore it, that
> this is really not cool.
A BlockingQueuedConnection[1] might be useful here, but as mentioned by
everyone else in this thread (no-pun intended), make sure you understand the
implications when using it (books, online resources, etc.).
1. http://qt.nokia.com/doc/4.5/qt.html#ConnectionType-enum
--
Bradley T. Hughes (Nokia-D-Qt/Oslo), bradley.hughes at nokia.com
Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway
More information about the Qt-interest-old
mailing list