[Qt-interest] Example of "moveToThread (this)" idiom -- legal?

K. Frank kfrank29.c at gmail.com
Mon Jan 3 00:56:59 CET 2011


Hello Thiago -

On Sun, Jan 2, 2011 at 4:19 PM, Thiago Macieira <thiago at kde.org> wrote:
> On Sunday, 2 de January de 2011 14:51:22 K. Frank wrote:
>> Are extra conditions (whatever that means) required for a
>> "moveToThread (this)"-style program to be properly written?
>> E.g., are there special requirements for consistency with
>> undocumented (and potentially changeable) internals of
>> QThread or other parts of the Qt framework?
>
> I don't know. You have to wait for Brad to be back from vacation to answer
> this.
>
> But I have a question for you: both Brad and I are telling you not to do this.
> Why are you trying to do what we told you not to do?

Thanks for the response.

Admittedly, from a practical perspective, there is no good reason
for me to pursue this question.  I should simply follow the recommended
approach, and be done with it.

But my goal here is to really understand what's going on -- not
necessarily a completely practical goal.  I'm happy to believe that
you and Brad are right and I shouldn't do this, but I am hoping to
understand why.  I thought I had worked through the Qt threading
model and really had it nailed -- but now I'm not so sure.

(Again, this is in no way an urgent or production-related question
for me.  It's just for my Qt education.)

> ...
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks

Thanks again for the information.


K. Frank



More information about the Qt-interest-old mailing list