[Qt-interest] Sending a qt signal from pthreads

K. Frank kfrank29.c at gmail.com
Tue Feb 8 14:46:11 CET 2011


Hello Thiago!

On Tue, Feb 8, 2011 at 2:48 AM, Thiago Macieira <thiago at kde.org> wrote:
> On Monday, 7 de February de 2011 18:37:44 K. Frank wrote:
>> If I spawn a pthread, and that pthread creates some sort of
>> QObject, what is the tread affinity of that QObject?
>
> Since Qt 4.2, to a QAdoptedThread (internal class) which is created for that
> thread. It's the same QThread sub-class that you get if you call
> QThread::self() in that thread too.

Thank you for the detailed explanation.  This all makes good
sense now.

> But I would recommend you don't do this.
>
>> Second:
>> ...

I appreciate your insights.


K. Frank



More information about the Qt-interest-old mailing list