[Qt-interest] QThread reinitialization
Ingomar Wesp
ingomar at wesp.name
Fri Jun 5 10:10:24 CEST 2009
>>I have a question regarding QThread. Let say we have a QThread object.
>> We start the thread. After the run() method finishes, can we again call
>> the "start()" method ? Or we have to create a new object and then start
>> the method again.
>
> Calling start() again is perfectly possible.
Just curious: Is the underlying (native) thread destroyed when the run()
method terminates? That is: Does calling start() again require a new native
thread to be created (and is thus expensive in terms of performance)?
More information about the Qt-interest-old
mailing list