[Qt-interest] QThread Question

william.crocker at analog.com william.crocker at analog.com
Thu Aug 6 13:30:50 CEST 2009



Donal O'Connor wrote:
> Hi,
> 
> I've got code here written by somebody else that seems to make use of 
> several threads but I'm quite worried that the processing is not done in 
> a different thread like intended.
>

When in doubt, print the id of the current thread from
the context of code in question and compare this with the
id of the main thread.

QThread *QThread::currentThread ()   [static]
     Returns a pointer to a QThread which represents
     the currently executing thread.




More information about the Qt-interest-old mailing list