[Qt-interest] QThread reinitialization

Bradley T. Hughes bradley.hughes at nokia.com
Mon Jun 8 09:23:59 CEST 2009


Tim W wrote:
>> Yes, it is. Both pthread and Win32 threads cannot be restarted, so QThread
>> will create new OS threads each time start() is called
> 
> Is it the same for the thread pool and QtConcurrent functions?

No. QtConcurrent uses QThreadPool, which will keep threads running and avoid 
restarting them.

-- 
Bradley T. Hughes (Nokia-D-Qt/Oslo), bradley.hughes at nokia.com
Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway



More information about the Qt-interest-old mailing list