[Development] qthread exiting

song.7.liu at nokia.com song.7.liu at nokia.com
Tue Aug 14 09:36:31 CEST 2012


Hi,

When the thread is exiting the destroy_current_thread_data will be called, and only if the thread data is adopted, the QThreadPrivate::finish is called.
But normally the thread data always have the isAdopted with false, then this thread 's status is still running even if it's exited.

So could somebody share when will the QThreadPrivate::finish be called during thread exiting ?
And what's the QAdoptedThread for? As only creating the AdoptedThread then the thread data' isAdopted will be set as true.

Thanks,
Song
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120814/d9898382/attachment.html>


More information about the Development mailing list