Hi,

i was wondering something about threads :

if you initalize your class, and then you call its instance with "start()", won't this class be called two times, once for the instance, and the second time for the thread pool? (whereas we just want to call the class once, on a separate thread)

example :

Qt Code:
  1. void MyClient::readyRead(){
  2. MyTask *mytask = new MyTask();
  3. …
  4. QThreadPool::globalInstance()->start(mytask);
  5. }
To copy to clipboard, switch view to plain text mode 

Thanks