Re: pater design for qthread manager
No, threads are not spawned like crazy, I just need a manager to manage them, because at design point I don't know if user has CPU with 1/2/4/8 cores/threads (default value is QThread::idealThreadCount() ), also I need to know with thread finished job so I can restart another one (no thread deletion each time).
QList is only a container for threads and there will be like 8 threads max. I also need this value to be changeable by the user so that way app can use 2 from 8 threads for example.
From RTM I see that QThreadPool is similar to the implementation that I did, assuming autodelete is set to false for QRunnable.
I just asked because I wanted to know opinion in that meter.
Thanks again for reply.
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
Bookmarks